I hereby claim:
- I am adambowles on github.
- I am adambowles (https://keybase.io/adambowles) on keybase.
- I have a public key ASD3YMbC-zwkxd1brTEhvGyRgSL-bqF-rNas_tPvTlsZUgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/tcsh | |
| # Grab user information. | |
| echo "PrivateInternetAccess OpenVPN Setup:" | |
| echo " https://www.privateinternetaccess.com/pages/client-control-panel" | |
| echo " -> PPTP/L2TP/SOCKS Username and Password" | |
| echo -n "User: " | |
| set user = $< | |
| echo -n "Pass: " | |
| set pass = $< |
| # Git | |
| alias undopush="git push -f origin HEAD^:master" | |
| alias gd="git diff" | |
| alias gds="git diff --stat" | |
| alias gdc="git diff --cached" | |
| alias gdcs="git diff --cached --stat" | |
| alias ga="git add" | |
| alias gca="git commit -a -m" | |
| alias gcm="git commit -m" | |
| alias gbd="git branch -D" |
| <html> | |
| <body> | |
| <canvas id="canvas" width="512" height="512"></canvas> | |
| <script> | |
| /** | |
| * Celestial body class | |
| */ | |
| var CelestialBody = function (name, x, y, radius, bodyColour, strokeColour) { | |
| this.name = name; | |
| this.x = x; |
| var pieces = 'OISZLJT'; | |
| function tetrisGenerator(length) { | |
| var piecesArray = pieces.split(''); | |
| var output = ''; | |
| while (output.length < length) { | |
| // Shuffle the pieces (Fisher-Yates/Knuth shuffle: http://stackoverflow.com/a/2450976/3690621) | |
| var current = piecesArray.length, temp, random; | |
| while (current !== 0) { |