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
$.getJSON("http://chipchirp.heroku.com/chirps.json?callback=?&user_id[]=1", | |
function(data){ | |
for(i=0;i<2;i++) | |
console.log(data[i].chirp.content); | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
$.getJSON( | |
"http://chipchirp.heroku.com/chirps.json?callback=?", | |
function(data) { | |
console.log(data); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
$.getJSON("http://chipchirp.heroku.com/chirps/?callback=?", | |
function(data) { | |
console.log(data); | |
}); |
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
(function () { | |
alert("hello world!"); | |
}(); |
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
(def foo () | |
(prn "hello world!")) |
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
(mac firsttime(place . body) | |
`(unless ,place | |
,@body | |
(set ,place))) |
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
class Followship < ActiveRecord::Base | |
attr_accessible :followed_id | |
belongs_to :follower, :class_name => "User" | |
belongs_to :followed, :class_name => "User" | |
validates :follower_id, :presence => true | |
validates :followed_id, :presence => true | |
end |
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
# == Schema Information | |
# Schema version: 20101109221104 | |
# | |
# Table name: users | |
# | |
# id :integer not null, primary key | |
# first_name :string(255) | |
# last_name :string(255) | |
# email :string(255) | |
# poker_site :string(255) |
NewerOlder