Skip to content

Instantly share code, notes, and snippets.

View harlantwood's full-sized avatar
💭
☀️

Harlan T Wood harlantwood

💭
☀️
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Project</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

We are cocreating a "nodesphere" abstraction to pass around (get/put) subgraphs of mutual interest. 

Nodesphere is intended especially for use by graph visualization tools like Core Network, Noomap, Metamaps...

I've already written prototypes of adaptors (client side coffeescript) which convert google spreadsheets and google drive folders into nodespheres (which are just graphs: nodes and edges).

Nodespheres will be content addressable and therefore automatically deduplicated. The data will likely be minified json with sorted keys.

Ultimately, I'd like to see these graphs stored and requested in post-server post-database systems like maidsafe.net and telehash.org .  We can start with server/db prototypes tho.

000c27fd7e4f4ecb25cb4084da3ba59bb1c464bb
001f3a462c8b64282add20d3d5b251a3f3a4adee
00304f1e0f2e7a222996f361c21c82674aa693cb
003f92f49c0900f0cc65a6c849464265f42cbdf4
003fe879644868a473ceda0afb884d925a0c3c4c
00716bb5e88ffc67a27003c8491efe19f60293e9
0076da8939010a29e76fee02f55d1ca2c463eb89
00837dfbb3bb516dba49b497442e144cfcc9234c
0095eed98773c90d74db38cf8ab34b696f243b46
00b3283293cf13ca013a494e350172ab4e447b19
@harlantwood
harlantwood / Adding NewRelic to a NodeJS Heroku app.md
Last active August 29, 2015 14:07
Adding NewRelic to a Node.js Heroku app
heroku addons:add newrelic
npm install newrelic --save
cp node_modules/newrelic/newrelic.js .

get the New Relic license key:

heroku config:get NEW_RELIC_LICENSE_KEY

edit newrelic.js, editing app name and license key. Optionally change logging level:

{
"detect_indentation": false,
"font_size": 19.0,
"indent_to_bracket": true,
"save_on_focus_lost": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}

This is a demo of (some of the features of) the Node.js library lightsaber.

Simply run:

npm install lightsaber
./generate_docs.coffee > generated_docs.md

To rebuild generated_docs.md from the coffeescript source.

@harlantwood
harlantwood / .gitignore
Created October 28, 2009 00:43
bash_profile extensions
custom
@harlantwood
harlantwood / README.md
Created October 31, 2009 23:47
cheatsheets

Usage: in your ~/.bash_profile, include these two lines:

export CHEATS=~/path/to/cheats

. $CHEATS/load

@harlantwood
harlantwood / gist:229859
Created November 9, 2009 10:24
generate random n character strings, encoded in base 64, with completely URL-safe characters
url_safe_64_chars = ( 0..9 ).to_a + ( 'a'..'z' ).to_a + ( 'A'..'Z' ).to_a + %w[ - _ ]
random_hashcodes = 100.times.map{ |i| url_safe_64_chars[ rand * ( 64 + 1 ) ] }.join.scan( /.{10}/ )
# Returns (e.g.) => ["D6sccOU_tN", "jjwXK3_zxd", "395npb8lPg", "uYPpDkyIBE", "PBbiprpK7w", "KihPOuTTEu", "ztW8GAKRuG", "0Abw9T6-CG", "wlrPjnLUHf"]
# More info on base 64 encoding: http://en.wikipedia.org/wiki/Base64

Link the project keymap to the RubyMine dir

# if you have no keymaps already:
rm -rf ~/Library/Preferences/RubyMine[RUBYMINE_VERSION]/keymaps   
ln -s ~/tools/rubymine_keymaps ~/Library/Preferences/RubyMine[RUBYMINE_VERSION]/