Skip to content

Instantly share code, notes, and snippets.

View croach's full-sized avatar

Christopher Roach croach

View GitHub Profile
@croach
croach / nenv.sh
Created March 16, 2014 02:09
A set of bash/zsh functions that provide simple virtual environment capabilities for node.
#
# A set of bash/zsh functions that provide simple virtual environment
# capabilities for node. To install, just copy this file into your home
# directory and add the following to your .bashrc or .zshrc file:
#
# if [[ -f "$HOME/.nenv" ]]; then
# source "$HOME/.nenv"
# fi
#
# What this script provides is a set of functions that are activated whenever
@croach
croach / core.clj
Created August 14, 2011 22:10
Scatter Plot w/ Normalized Data
(ns hooray-data.core
(:gen-class)
(:use (incanter core stats charts io))
(:use [incanter.processing :only (norm)]))
(def data (read-dataset
"https://raw.github.com/liebke/incanter/master/data/iris.dat"
:delim \space
:header true))
#include <stdio.h>
int fib(n) {
if ((n == 0)||(n == 1)) {
return n;
} else {
return fib(n-1) + fib(n-2);
}
}
def fib(n)
if n == 0 || n == 1
n
else
fib(n - 1) + fib(n - 2)
end
end
if $0 == __FILE__
36.times do |i|
function fib(n)
if n <= 1 then
return n
else
return fib(n-1) + fib(n-2)
end
end
for i=0, 35 do print("n = "..i.." => "..fib(i)) end
Host mygitrepo
Hostname christopherroach.com
Port 2222
User remote_username
#### `.gitattributes`
*.pbxproj -crlf -diff -merge
#### `.gitignore`
# xcode noise
build/*
*.mode1v3
# SVN directories
.svn
# osx noise
.DS_Store
#ifndef HEADER_H
#define HEADER_H
// Contents of the header file
#endif
#import <stdio.h>
int main(int argc, char **argv) {
printf("Hello world");
}