Skip to content

Instantly share code, notes, and snippets.

@cahlering
cahlering / Hadoop_install_osx.md
Last active February 12, 2019 01:29 — forked from viecode09/Hadoop_install_osx.md
This is how to install hadoop on Mac OS

STEP 1: First Install HomeBrew, download it from http://brew.sh

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

STEP 2: Install Hadoop

$ brew search hadoop
$ brew install hadoop
@cahlering
cahlering / fetch
Created June 28, 2014 15:18
Rotten Tomatoes
NSString *url = @"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json?apikey=qqjjvmep568xkmjkrqd42bsa";
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
id object = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSLog(@"%@", object);
self.movies = object[@"movies"];
[self.tableView reloadData];
}];
@cahlering
cahlering / 0_reuse_code.js
Created October 21, 2013 18:06
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