Skip to content

Instantly share code, notes, and snippets.

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
@ericfode
ericfode / gist:3286021
Created August 7, 2012 14:54 — forked from akaptur/gist:3279183
quicksort in C
#include <stdio.h>
#include <stdlib.h>
void quicksort(int *array, int length);
void swap(int *a, int *b);
void print(int *array, int length);
int main()
{
@ericfode
ericfode / sentences.c
Created May 7, 2012 00:46 — forked from anonymous/sentences.c
c program
#include <stdio.h>
#include <string.h>
//Declaring variables..
int numOfSentences;
int numOfWords;
char word[1]; //temp variable to read in stuff from the file and check it.
char articles[10];