This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using UnityEngine; | |
| public class AndroidReadAsset : MonoBehaviour | |
| { | |
| #if UNITY_ANDROID && !UNITY_EDITOR | |
| [DllImport("libc")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from argparse import ArgumentParser | |
| def main(): | |
| parser = ArgumentParser(description="Script to convert CSV to OBJ file") | |
| parser.add_argument("input", type=str, help="Input CSV file path") | |
| parser.add_argument("output", type=str, help="Output OBJ file path") | |
| parser.add_argument("--flip-y", action="store_true", help="Flip Y") | |
| parser.add_argument("--flip-uv", action="store_true", help="Flip UV") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div | |
| class="container" | |
| v-bind:style="containerStyle" | |
| v-on:mousedown="mousedown" | |
| v-on:mousemove="mousemove" | |
| v-on:wheel="handleWheel" | |
| > | |
| <div class="handle" v-bind:style="handleStyle"></div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef __LOOPBUF_H__ | |
| #define __LOOPBUF_H__ | |
| #define LOOPBUF_DEFINE(type, capacity, varname) \ | |
| struct { \ | |
| unsigned char in; \ | |
| unsigned char out; \ | |
| type buf[ capacity ]; \ | |
| } varname; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef STREAMSUMMARY_H | |
| #define STREAMSUMMARY_H | |
| #include <list> | |
| #include <unordered_map> | |
| #include <vector> | |
| #include <tuple> | |
| #include <string> | |
| #include <algorithm> | |
| #include <cstdlib> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef struct _node { | |
| int k; | |
| int v; | |
| struct _node * next; | |
| } node; | |
| static int hash (int x, int m){ | |
| return ((x ^ 0x3FB15C87) & ~0x80000000) % m; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function xxx_rpc_call(x, callback){ | |
| setTimeout(callback, 1000 + Math.random()*1000, x.toString(16)); | |
| } | |
| const results = new Array(); | |
| let index = 1; | |
| function cb_arrange(x){ | |
| return (result) => { | |
| results[x] = result; | |
| if (x == 1 || results[x - 1] !== undefined){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd / # THIS CD IS IMPORTANT THE FOLLOWING LONG COMMAND IS RUN FROM / | |
| mount /dev/nvme0n1p9 /mnt || exit 1 | |
| tar -cvpzf /mnt/backup-$(date +%F_%H%M%S).tar.gz \ | |
| --exclude=/proc \ | |
| --exclude=/tmp \ | |
| --exclude=/mnt \ | |
| --exclude=/dev \ | |
| --exclude=/sys \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generated by xtables-save v1.8.2 on Mon Feb 24 19:24:15 2020 | |
| *mangle | |
| :PREROUTING ACCEPT [0:0] | |
| :INPUT ACCEPT [0:0] | |
| :FORWARD ACCEPT [0:0] | |
| :OUTPUT ACCEPT [0:0] | |
| :POSTROUTING ACCEPT [0:0] | |
| :V2RAY - [0:0] | |
| :V2RAY_MASK - [0:0] | |
| -A PREROUTING -j V2RAY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo dpkg --purge $(dpkg --get-selections | grep deinstall | cut -f1) |