Skip to content

Instantly share code, notes, and snippets.

View BilalBudhani's full-sized avatar
👀
Looking for something interesting to work on

Bilal Budhani BilalBudhani

👀
Looking for something interesting to work on
View GitHub Profile
@BilalBudhani
BilalBudhani / 0_reuse_code.js
Created November 24, 2013 16:51
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
@BilalBudhani
BilalBudhani / imdb_fetch.rb
Last active December 21, 2015 05:19
ruby imdb_fetch.rb -n 10 "Morgan Freeman"
require 'rubygems'
require 'nokogiri'
require 'open-uri'
### Functions to work around
def fetch_top_movies(top_no)
top_movies = Array.new
ctr = 0
url = 'http://www.imdb.com/chart/top'
@BilalBudhani
BilalBudhani / log_data.rb
Last active December 21, 2015 05:19
Ruby code to read apache logs and count the server response.
require 'rubygems'
responses = Array.new
File.foreach('logs/access.log') do |line|
log_line = line.chomp.split(/\s+/)
responses << log_line[9]
end
counts = Hash.new(0)
@BilalBudhani
BilalBudhani / keybase.md
Created April 19, 2014 15:13
keybase.md

Keybase proof

I hereby claim:

  • I am github on github.
  • I am bilalbudhani (https://keybase.io/bilalbudhani) on keybase.
  • I have a public key whose fingerprint is E794 7BD0 243A EBEA 4128 EE83 9D40 47F2 038D C099

To claim this, I am signing this object:

@BilalBudhani
BilalBudhani / error.log
Created April 1, 2014 13:55
Npm install --dev
pm ERR! System Darwin 13.1.0
npm ERR! command "/usr/local/Cellar/node/0.10.26/bin/node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/bilalbudhani/work/angular-semantic
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /Users/bilalbudhani/work/angular-semantic/node_modules/karma-jasmine/node_modules/karma/node_modules/minimatch/node_modules/sigmund/node_modules/tap/node_modules/difflet/node_modules/tap/lib/tap-assert.js
npm ERR! fstream_path /Users/bilalbudhani/work/angular-semantic/node_modules/karma-jasmine/node_modules/karma/node_modules/minimatch/node_modules/sigmund/node_modules/tap/node_modules/difflet/node_modules/tap/lib/tap-assert.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT