[ Launch: d3 box plot ] 83239bdc4d09ad7fc920 by Aeon
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 page = new WebPage(), | |
address, selector, filename; | |
var system = require('system'); | |
page.onConsoleMessage = function(msg) { | |
system.stderr.writeLine('console: ' + msg); | |
}; | |
//capture and captureSelector functions adapted from CasperJS - https://github.com/n1k0/casperjs | |
capture = function(targetFile, clips) { |
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
/* | |
* gulp and site config based on | |
* http://justinjohnson.org/javascript/getting-started-with-gulp-and-browserify/ | |
* https://gist.github.com/Sigmus/9253068 | |
* | |
*/ | |
try { | |
var gulp = require('gulp'), |
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 'sinatra' | |
logfile = 'log.json' | |
get '/' do | |
send_file logfile, :type => :text | |
end | |
post '/' do | |
File.open(logfile, 'a') do |filehandle| |
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
# translation to python for grasshopper | |
# original: https://gist.github.com/mbostock/22fd67be72552774736d | |
# import pdb | |
import numpy | |
def poissonDiscSampler(width, height, radius): | |
k = 30 # maximum number of samples before rejection | |
radius2 = radius * radius | |
R = 3 * radius2 |
https://github.com/diafygi/acme-tiny
make sure permissions are such that deploy user does not have access to domain.key
I hereby claim:
- I am aeon on github.
- I am aeontech (https://keybase.io/aeontech) on keybase.
- I have a public key whose fingerprint is 085A 7C40 1BB8 2E8D 832F A7A6 8344 4866 8E81 E71F
To claim this, I am signing this object:
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
[color] | |
ui = auto | |
diff = auto | |
status = auto | |
branch = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] |
- go to https://www.reddit.com/prefs/apps and create a new script app
- copy the client_id (short weird string next to app name) and client_secret (long weird string)
- insert your mod username, password, client_id and client_secret into praw.ini
- create flair.txt file with list of flairs
- install praw library with
pip install --pre praw
- run
python flair_import.py
- strip beginning/ending single or double quotes
^([^:]*): (?:["'])?(.*?)(?:["'])?$
$1: $2
- replace quotes around KEYS with placeholders, if the key has quotes, preserve indents