Skip to content

Instantly share code, notes, and snippets.

View jahan-paisley's full-sized avatar
🌠
Working on lovely stuff

Jahan Zinedine jahan-paisley

🌠
Working on lovely stuff
View GitHub Profile
require 'net/http'
require 'uri'
require 'nokogiri'
require 'open-uri'
$address = 'http://www.asia.si.edu/archives/finding_aids/sevruguin.html'
$path = "~/Downloads/"
url = URI.parse($address)
puts "downloading"
@jahan-paisley
jahan-paisley / Irancell.js
Created November 15, 2011 09:15
Irancell.js
function Message(serialnumber)
{
var This = this;
this.SerialNumber = serialnumber;
This.Found= false;
this.loadResult = function (data)
{
var jsonString = data;
var jsObj = eval("(" + jsonString + ')');