This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# githubcommitinfo.rb - Fetches info about a commit on github. | |
# http://develop.github.com/p/commits.html | |
# Usage: $ ./githubcommitinfo.rb <gh_username> <gh_repo> <gh_branch> | |
# Dependencies: | |
# rubygems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extending the JOS File System | |
People: | |
Aniruddha Laud | |
Gaurav Menghani | |
Synopsis: | |
The JOS filesystem is a bare-bones filesystem, which can be improved upon by adding | |
features of a contemporary filesystems. We propose implementing the following |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cstring> | |
#include<cstdio> | |
using namespace std; | |
#define MAXN 1000 | |
bool done[MAXN+10][MAXN*6+10]; | |
long double dp[MAXN+10][MAXN*6+10]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.StringTokenizer; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.IntWritable; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.mapreduce.Job; | |
import org.apache.hadoop.mapreduce.Mapper; | |
import org.apache.hadoop.mapreduce.Reducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.StringTokenizer; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.IntWritable; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.mapreduce.Job; | |
import org.apache.hadoop.mapreduce.Mapper; | |
import org.apache.hadoop.mapreduce.Reducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <cstdio> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
extern "C" int yylex(); | |
extern "C" int yyparse(); | |
extern "C" FILE *yyin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOGS_PATH="logs/userlogs/" | |
declare JOB=`ls $LOGS_PATH`; | |
JOB_PATH="$LOGS_PATH$JOB"; | |
COMMAND="ls -1 --hide=job* $JOB_PATH/"; | |
declare RET=`$COMMAND`; | |
`rm cputime.out`; | |
`touch cputime.out`; | |
for TASK in $RET | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import simplejson as json | |
def get_followers_url(handle): | |
return 'https://api.twitter.com/1/followers/ids.json?cursor=-1&screen_name=' + handle | |
def get_followers(handle): | |
return json.load(urllib.urlopen(get_followers_url(handle)))['ids'] | |
def get_friends_url(handle): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execve("/bin/ls", ["ls"], [/* 18 vars */]) = 0 | |
brk(0) = 0x916c000 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7711000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat64(3, {st_mode=S_IFREG|0644, st_size=65263, ...}) = 0 | |
mmap2(NULL, 65263, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7701000 | |
close(3) = 0 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Now Reading | |
----------- | |
The Google File System | |
(http://static.googleusercontent.com/external_content/untrusted_dlcp/research.google.com/en/us/archive/gfs-sosp2003.pdf) | |
[November 28, 2012] | |
Next Up | |
------- | |
Big Table | |
Dremel |
OlderNewer