Skip to content

Instantly share code, notes, and snippets.

View secunit64's full-sized avatar

Madhu Srinivasan secunit64

View GitHub Profile
@secunit64
secunit64 / 0_reuse_code.js
Created May 31, 2014 18:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
static N:int = 100000;
//
// Chinese Whispers in Rust
// Based on example by Rob Pike
// in http://www.youtube.com/watch?v=f6kdp27TYZs
//
fn main() {
let (leftmost_port, leftmost_chan) = Chan::new();
let mut leftc: Chan<int> = leftmost_chan;
@secunit64
secunit64 / pool.rs
Created December 31, 2013 11:52 — forked from anonymous/pool.rs
#[no_uv];
extern mod native;
extern mod green;
extern mod rustuv; // pull in I/O support for libgreen
use std::task::TaskOpts;
#[start]
fn start(argc: int, argv: **u8) -> int {
do native::start(argc, argv) {
@secunit64
secunit64 / green.rs
Created December 31, 2013 11:52 — forked from anonymous/green.rs
#[no_uv];
extern mod green;
extern mod rustuv; // pull in I/O support
#[start]
fn start(argc: int, argv: **u8) -> int {
do green::start(argc, argv) {
main();
}
}
@secunit64
secunit64 / foo.rs
Created December 31, 2013 11:52 — forked from anonymous/foo.rs
#[no_uv];
extern mod native;
#[start]
fn start(argc: int, argv: **u8) -> int {
do native::start(argc, argv) {
main();
}
}
@secunit64
secunit64 / README.md
Created February 9, 2013 08:41 — forked from emeeks/README.md

The range sliders at the top change the values for the force-directed algorithm and the buttons load new graphs and apply various techniques. This will hopefully serve as a tool for teaching network analysis and visualization principles during my Gephi courses and general Networks in the Humanities presentations.

Notice this includes a pretty straightforward way to load CSV node and edge lists as exported from Gephi.

It also includes a pathfinding algorithm built for the standard data structure of force-directed networks in D3. This requires the addition of .id attributes for the nodes, however.

Now with Clustering Coefficients!

Also, it loads images for nodes but the images are not in the gist. The code also refers to different network types but the data files on Gist only refer to the transportation network.

@secunit64
secunit64 / command line shell
Created July 24, 2012 11:38 — forked from blakmatrix/command line shell
Getting Meteor leaderboard up on nodejitsu/jitsu
meteor create --example leaderboard
meteor bundle myapp.tgz
tar xzf myapp.tgz
cd bundle
(create package json with settings below)
jitsu databases create mongo <dbname>
(grab dbstring)
jitsu env set PORT 3000
jitsu env set MONGO_URL <dbstring>
jitsu deploy
@secunit64
secunit64 / command line shell
Created July 24, 2012 11:38 — forked from blakmatrix/command line shell
Getting Meteor todos up on nodejitsu/jitsu
meteor create --example todos
meteor bundle myapp.tgz
tar xzf myapp.tgz
cd bundle
(create package json with settings below)
jitsu databases create mongo <dbname>
(grab dbstring)
jitsu env set PORT 3000
jitsu env set MONGO_URL <dbstring>
jitsu deploy
@secunit64
secunit64 / command line shell
Created July 24, 2012 11:38 — forked from blakmatrix/command line shell
Getting Meteor wordplay up on nodejitsu/jitsu
meteor create --example wordplay
meteor bundle myapp.tgz
tar xzf myapp.tgz
cd bundle
(create package json with settings below)
jitsu databases create mongo <dbname>
(grab dbstring)
jitsu env set PORT 3000
jitsu env set MONGO_URL <dbstring>
jitsu deploy