Skip to content

Instantly share code, notes, and snippets.

View croach's full-sized avatar

Christopher Roach croach

View GitHub Profile
@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|
#### `.gitignore`
# xcode noise
build/*
*.mode1v3
# SVN directories
.svn
# osx noise
.DS_Store
#import <stdio.h>
int main(int argc, char **argv) {
printf("Hello world");
}
cd /directory/where/you/downloaded/the/SDK
unzip android-sdk-platform-version_beta.zip
mv android-sdk-platform-version_beta.zip /your/chosen/path
package com.android.hello;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.view.View;
import android.view.View.OnClickListener;
Host mygitrepo
Hostname christopherroach.com
Port 2222
User remote_username
#ifndef HEADER_H
#define HEADER_H
// Contents of the header file
#endif
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText