A Pen by Trang Si Hung on CodePen.
This file contains 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 parseURL(inURL) { | |
inURL = trimToLast(inURL, "/"); | |
inURL = trimToLast(inURL, "?"); | |
if (!inURL.includes("&")) return { | |
partner: undefined, | |
token: undefined | |
} | |
var arr = inURL.split("&"); | |
var partner = undefined; | |
var token = undefined; |
This file contains 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 yum install glibc libstdc++ | |
mkdir ~/steamcmd | |
mkdir ~/svencoop | |
cd ~/steamcmd | |
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | |
tar -xvzf steamcmd_osx.tar.gz | |
./steamcmd -login anonymous +force_install_dir "~/svencoop" +app_update 276060 validate +exit |
I hereby claim:
- I am justinoboyle on github.
- I am justinoboyle (https://keybase.io/justinoboyle) on keybase.
- I have a public key whose fingerprint is 806E CE99 29A0 3EEC F38E E2ED A82B 3387 61B0 A503
To claim this, I am signing this object:
This file contains 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
/** | |
Paste this script into Developer Tools console when you see "rolling" | |
**/ | |
function doubleBot() { | |
$(".navbar-brand").text("Bot is waiting..."); | |
setTimeout(doubleBotChecker, 5); | |
} | |
function doubleBotChecker() { | |
if ($("#banner").text().includes("Rolling")) |
This file contains 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 exports = module.exports = {}; | |
var easytime = require('../util/easytime.js'); | |
var Chance = require('chance'); | |
var chance = new Chance(); | |
exports.gameStates = { | |
acceptingBets: 0, | |
waitingToRoll: 1, | |
rolling: 2 | |
} |
This file contains 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
const fs = require('fs'); | |
const regression = require('regression'); | |
function createNDimArray(dimensions) { | |
var t, i = 0, s = dimensions[0], arr = new Array(s); | |
if ( dimensions.length < 3 ) for ( t = dimensions[1] ; i < s ; ) arr[i++] = new Array(t); | |
else for ( t = dimensions.slice(1) ; i < s ; ) arr[i++] = createNDimArray(t); | |
return arr; | |
} |
This file contains 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
alias vimput=' | |
function _vimput(){ | |
file=~/.vimput-temp-$(date +"%s"); | |
touch $file; | |
vim $file +startinsert; | |
cat $file; | |
rm -rf $file; | |
}; | |
_vimput | |
'; |
This file contains 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
$ node data.js | |
Generating noisy data. | |
• | |
• | |
• | |
• |