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 Unity.Burst; | |
| using Unity.Collections; | |
| using Unity.Jobs; | |
| using Unity.Mathematics; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| using TMPro; | |
| public class OptimalSpatialHashing : MonoBehaviour { |
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
| -accesscode - | |
| -batterytestmode - rapidly cycle battery percentages for testing | |
| -bigpicture - Start in Steam Big Picture mode | |
| -browser-offline - | |
| -cafeapplaunch - Launch apps in a cyber cafe context | |
| -candidates - Show libjingle candidates for local connection as they are processed | |
| -ccsyntax - Spew details about the localized strings we load | |
| -cef-allow-browser-underlay - Allow webhelper to create BrowserView underlays | |
| -cef-delaypageload - Enable early-out for known page loads | |
| -cef-disable-breakpad - disables breakpad in crash dumps |
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
| /* | |
| * Author: Jim Chan | |
| * Created Date: 15/04/2024 | |
| */ | |
| using System; | |
| using UnityEngine; | |
| public static class ColorConverter | |
| { | |
| public static Color32 ToColor(int value) |
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.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Mono.Cecil; | |
| using Mono.Cecil.Cil; | |
| using Mono.Cecil.Rocks; | |
| using Mono.Cecil.Pdb; | |
| using System.IO; |
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
| curl https://raw.githubusercontent.com/teddysun/across/master/bbr.sh > bbr.sh | |
| chmod +x bbr.sh | |
| ./bbr.sh |
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 apt-get -y install apt-transport-https ca-certificates curl | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| sudo apt-get update | |
| sudo apt-get -y install docker-ce |
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
| # Generate your identity key on openwrt | |
| dropbearkey -t rsa -f ~/.ssh/id_rsa | |
| # Convert public key from dropbear binary to openssh text | |
| # Copy and paste output from below to bitbucket account ssh keys | |
| dropbearkey -y -f ~/.ssh/id_rsa | head -n 2 | tail -1 | |
| # Change git ssh command | |
| echo "#!/bin/sh" > ~/.gitssh.sh | |
| echo "dbclient -y -i ~/.ssh/id_rsa \$\*" >> ~/.gitssh.sh | |
| chmod +x ~/.gitssh.sh |
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
| require('shelljs/global') | |
| var svn = require('node-svn-ultimate') | |
| var program = require('commander') | |
| program | |
| .version('0.0.1') | |
| .option('-u, --url <url>', 'SVN url <url>') | |
| .option('-d, --dir <dir>', 'Root dir <dir>') | |
| .option('-r, --relative', 'Use relative path') | |
| .option('-n, --username <username>', 'User name <username>') |
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
| %{ | |
| var table = {} | |
| %} | |
| %lex | |
| %% | |
| \n return 'NEWLINE' | |
| ": " return 'SEP' | |
| [\w ]+ return 'WORDS' |