- Tent
- Sleeping bag
- Blanket
- Water bottles
- Towel
- Swiss army knife
- An actual knife - emergencies
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 got = require('got'); | |
const gocha = "gotcha…" | |
const AUTH_KEY = '' | |
;(async () => { | |
try { | |
const { data, headers } = await got.post({ | |
url: 'https://api.github.com/graphql', | |
headers: { Authorization: `bearer ${AUTH_KEY}` }, |
I hereby claim:
- I am bigomega on github.
- I am bigomega (https://keybase.io/bigomega) on keybase.
- I have a public key whose fingerprint is 35B8 190F 23C3 8576 1E8C 8C8E 8EB4 BBCA 4DF5 E11C
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
var hex_arrangement = [ | |
'3333', | |
'32223', | |
'321123', | |
'3210123' | |
] | |
var hexval = { | |
0: [['profile', 'data-nav="home']], | |
1: [ | |
['behance', 'https://www.behance.net/bigOmega'], |
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
import urllib2, re, time, json, os | |
import gspread | |
from oauth2client.client import SignedJwtAssertionCredentials | |
html = urllib2.urlopen('http://www.dota2.com/international/battlepass').read() | |
prizepool = re.search('id=[\'"]prizepool[^>]*>[\n\r\t]*([^<\t\r\n]*)', html, re.IGNORECASE).group(1) | |
print(time.strftime('%H:%M - %m/%d/%Y'), prizepool) | |
print("Update it in Google sheets") | |
json_key = json.load(open(os.path.join(os.path.dirname(__file__), 'Personal hacks-0e20089bab35.json'))) |
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
dict = ['cat','cot','cog','bog','bat','bap','map', 'mat']; | |
start = 'cat'; | |
end = 'map'; | |
isLinked = function(w1, w2){ | |
var flag = false; | |
for (var i = 0; i < w1.length; i++) { | |
if(w1[i] != w2[i]){ | |
if(flag) | |
return false; | |
flag = true; |
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
'use strict' | |
const fs = require('fs') | |
// util function modified from github.com/bucaran/sget | |
function readLineSync(message) { | |
message = message || '' | |
const win32 = () => 'win32' === process.platform | |
const readSync = function(buffer) { | |
var fd = win32() ? process.stdin.fd : fs.openSync('/dev/stdin', 'rs') | |
var bytes = fs.readSync(fd, buffer, 0, buffer.length) |
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
'use strict' | |
const _utils = require('./_utils') | |
function getColumns(game) { return game.board } | |
function getRows(game) { return _utils.inverse2D(game.board) } | |
function getNWDiagonals(game) { | |
return _utils.range(game.width + game.height - 1).map(edge => { |
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
max="$1" | |
date | |
echo "url: $2 | |
rate: $max calls / second" | |
START=$(date +%s); | |
get () { | |
curl -s -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log | |
} |
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
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import net.sf.sahi.client.Browser; | |
import net.sf.sahi.client.ElementStub; | |
public class JQuery { | |
protected Browser browser; |
NewerOlder