I hereby claim:
- I am alexyoung on github.
- I am alexyoung (https://keybase.io/alexyoung) on keybase.
- I have a public key whose fingerprint is 620E 32D7 402D A626 1DFB D437 4B84 C8F8 8B53 67E2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
hp = Helipad.new("lonnon@example.com", "password") | |
source = File.read("cake_recipe.txt") | |
response = hp.create(:title => "Cake", | |
:tags => "recipe", | |
:source => source) | |
puts "Recipe saved" if response.saved? |
Ico.Base = Class.create({ | |
/* Returns a suitable set of labels for given data points on the Y axis */ | |
labelStep: function(data) { | |
var min = data.min(), | |
max = data.max(), | |
range = max - min, | |
step = 0; | |
if (range < 2) { | |
step = 0.1; |
var listDataSource = { | |
_rowData: [], | |
// The List calls this method to find out how many rows should be in the list. | |
numberOfRows: function() { | |
return this._rowData.length; | |
}, | |
// The List calls this method once for every row | |
prepareRow: function(rowElement, rowIndex, templateElements) { |
require 'net/http' | |
require 'cgi' | |
require 'rubygems' | |
require 'xmlsimple' | |
class TubeUpdates | |
API_URL = 'http://api.tubeupdates.com/?method=%s&lines=%s&format=%s' | |
def initialize(stations, options = {}) | |
@stations = stations |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
require 'cgi' | |
class PlayScrape | |
URL = "http://www.play.com/Search.aspx?searchtype=allproducts&searchstring=%s&page=search&pa=search&go.x=0&go.y=0" | |
def initialize | |
end |
require 'net/http' | |
require 'uri' | |
data = 'email=test@example.com&password=your_password' | |
url = URI.parse('http://helipadapp.com/authenticate') | |
headers = { | |
'Content-Type'=> 'application/x-www-form-urlencoded' | |
} | |
http = Net::HTTP.new(url.host) |
require 'net/http' | |
require 'uri' | |
data = 'email=test@example.com&password=your_password' | |
url = URI.parse('http://helipadapp.com/authenticate') | |
headers = { | |
'Content-Type'=> 'application/x-www-form-urlencoded' | |
} | |
http = Net::HTTP.new(url.host) |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>OpenLayers Example</title> | |
<link rel="stylesheet" href="theme/default/style.css" type="text/css" /> | |
<script src="http://www.openlayers.org/api/OpenLayers.js"></script> | |
<script type="text/javascript"> | |
var map; | |
function init() { | |
map = new OpenLayers.Map('map'); | |
var ol_wms = new OpenLayers.Layer.WMS('OpenLayers WMS', 'http://labs.metacarta.com/wms/vmap0?', {layers: 'basic'}); |