Skip to content

Instantly share code, notes, and snippets.

View hoskeri's full-sized avatar

Abhijit Hoskeri hoskeri

View GitHub Profile
@hoskeri
hoskeri / songs.pk
Created March 4, 2011 04:50
Script to scrape songs.pk
#!/usr/bin/ruby
require 'nokogiri'
require 'open-uri'
Nokogiri::HTML(open(ARGV[0])).css("a").map do |link|
link.attributes["href"].value
end.find_all do |link|
link.include? "song1.php?songid=" or link.include? "song.php?songid="
end.each do |link|
anonymous
anonymous / QuineFizzBuzz.py
Created April 18, 2011 15:47
This generates an arbitrary-depth fizz-buzz-generator and is also a quine.
#!/usr/bin/python
import sys
code = """#!/usr/bin/python
import sys
code = {0}{1}{0}
def initial_solution():