I hereby claim:
- I am jiaaro on github.
- I am jiaaro (https://keybase.io/jiaaro) on keybase.
- I have a public key ASAmjWlR2gGlcJGuKzzPQ4UDqxXW0WeP-NDoJACLKWKo7go
To claim this, I am signing this object:
// nodewar.com library function… | |
// o.lib.targeting.simpleTarget(ship, pos) | |
// | |
// mostly deobfuscated/deminified | |
// | |
function simpleTarget(ship, pos) { | |
var i, r, h, | |
torque = 0, | |
thrust = 0, | |
dir = o.lib.targeting.dir(ship, pos); |
from collections import Counter | |
K = 3 | |
dataset = [ | |
# weight, color, # seeds, type | |
[303, 3, 1, "banana"], | |
[370, 1, 2, "apple"], | |
[298, 3, 1, "banana"], | |
[277, 3, 1, "banana"], | |
[377, 4, 2, "apple"], |
# add new database to addons before running this | |
# fill in the blank | |
# eg. DBNAME=HEROKU_POSTGRESQL_ROSE <- new Database | |
DBNAME=HEROKU_POSTGRESQL_ROSE | |
heroku maintenance:on | |
heroku scale web=0 | |
heroku pgbackups:capture --expire |
function replace(txt) { | |
txt = txt.replace(/witnesses/gi, "dudes I know"); | |
txt = txt.replace(/allegedly/gi, "kinda probably"); | |
txt = txt.replace(/new study/gi, "tumblr post"); | |
txt = txt.replace(/rebuild/gi, "avenge"); | |
txt = txt.replace(/space/gi, "spaaace"); | |
txt = txt.replace(/google glass/gi, "virtual boy"); | |
txt = txt.replace(/smartphone/gi, "pokédex"); | |
txt = txt.replace(/electric/gi, "atomic"); | |
txt = txt.replace(/senator/gi, "elf-lord"); |
import struct | |
import math | |
from ctypes import create_string_buffer | |
class error(Exception): | |
pass | |
# this module redefines the names of some builtins that are used | |
max_ = max |
#!/usr/bin/env python | |
import ast | |
from os.path import isfile | |
from hashlib import md5 | |
from random import randint, choice | |
from glob import glob | |
import re | |
# scratch area | |
""" |
class Investment(object): | |
def cash_invested_by_month(self, month): | |
raise NotImplementedError | |
def value_in_month(self, month): | |
raise NotImplementedError | |
class SingleInvestment(Investment): | |
def __init__(self, amount, monthly_interest_rate, month=0): |
I hereby claim:
To claim this, I am signing this object:
If you've ever wondered what it's be like to "go indie" here is a script with some assumptions that might help you project your income.
Assumptions:
So how would that work out?
#!/usr/bin/env bash | |
set -eo pipefail | |
NODE_VERSION=$(curl --silent --get https://semver.io/node/stable) | |
NODE_BASENAME=node-v${NODE_VERSION}-linux-x64 | |
NODE_ARCHIVE="http://nodejs.org/dist/v${NODE_VERSION}/${NODE_BASENAME}.tar.gz" | |
# make a temp directory | |
tempdir="$( mktemp -t node_XXXX )" | |
rm -rf $tempdir |