Skip to content

Instantly share code, notes, and snippets.

[{"name":"Netherlands","logo":"http://cache.images.globalsportsmedia.com/soccer/teams/150x150/1552.png","website":"http://www.knvb.nl","foundedYear":1889,"address":"Woudenbergseweg 56-58\n3700 AM\nZeist","homeStadium":"Amsterdam ArenA","stadiumCapacity":53052,"group":"B","groupRank":1,"groupPoints":3,"matchesPlayed":1,"wins":1,"losses":0,"draws":0,"goalsFor":5,"goalsAgainst":1,"goalsDiff":"+4","id":"FB6842E6-BB62-450D-98C0-A062610E6518","type":"Team"},{"name":"Chile","logo":"http://cache.images.globalsportsmedia.com/soccer/teams/150x150/424.png","website":"http://www.anfp.cl","foundedYear":1895,"address":"Avenida Quilín 5635, Comuna Peñalolén\nSantiago de Chile","homeStadium":"Estadio Nacional Julio Martínez Prádanos","stadiumCapacity":66660,"group":"B","groupRank":2,"groupPoints":3,"matchesPlayed":1,"wins":1,"losses":0,"draws":0,"goalsFor":3,"goalsAgainst":1,"goalsDiff":"+2","id":"9A319800-C80A-4FD9-9679-125D27246FB0","type":"Team"},{"name":"Australia","logo":"http://cache.images.globalsportsmedia.com/soccer
[{"homeScore":1,"awayScore":3,"currentGameMinute":null,"startTime":"2014-06-14T19:00:00.000Z","status":"Final","venue":"Estádio Governador Plácido Aderaldo Castelo (Fortaleza, Ceará)","group":"D","awayTeamId":"F77B348A-D7AE-4534-8ADA-8E52BEE64744","homeTeamId":"088C4113-CEFC-460C-830C-277C148C0CE7","id":"5CE66431-86C1-4BDB-8D9E-A07C238AE4B9","type":"Match"},{"homeScore":1,"awayScore":2,"currentGameMinute":null,"startTime":"2014-06-14T22:00:00.000Z","status":"Final","venue":"Arena Amazônia (Manaus, Amazonas)","group":"D","awayTeamId":"B61B25AA-CD8E-4778-AC26-DD08D7851990","homeTeamId":"2EFCFEB2-EBF8-4628-B659-B00C49D93811","id":"F07CB601-072A-4B11-91D7-DD36ABE6E98A","type":"Match"},{"homeScore":0,"awayScore":0,"currentGameMinute":null,"startTime":"2014-06-21T22:00:00.000Z","status":"Pre-game","venue":"Arena Pantanal (Cuiabá, Mato Grosso)","group":"F","awayTeamId":"74EA3831-DA4A-4093-B1E3-FD4EB45AA798","homeTeamId":"028EDCA8-6D1E-49CC-8442-A7A12E921E09","id":"26D94370-47AF-46A6-BA3E-8DFFB062B815","type":"Match"
Light stream: 0.1728515625,0.171875,0.1728515625,0.171875,0.1728515625,0.1728515625,0.1728515625,0.171875,0.1728515625,0.1728515625,
Sound stream: 0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.0166015625,0.017578125,0.017578125,0.017578125,0.017578125,
Light stream: 0.1728515625,0.1728515625,0.171875,0.1728515625,0.1728515625,0.1728515625,0.1728515625,0.171875,0.171875,0.1728515625,
Sound stream: 0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,
Light stream: 0.1728515625
Current Light level: 0.1728515625
Sound stream: 0.017578125
Current Sound level: 0.017578125
Light stream: 0.171875,0.171875,0.171875,0.171875,0.171875,0.1728515625,0.171875,0.1728515625,0.1728515625,0.171875,
Sound stream: 0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,0.017578125,
@mulderp
mulderp / index.js
Created August 31, 2014 08:11
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 200
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
var findit = require('findit')('./posts');
findit.on('file', function(file, stat) {
(fs.createReadStream(file)).pipe(through(function(data) {
this.queue(marked(data.toString()));
})).pipe(process.stdout);
});
@mulderp
mulderp / gist:778053
Created January 13, 2011 15:37
rspec a view of images
describe "main/index.html.erb" do
before(:each) do
@designs = mock("array of design")
@designs.stub!(:designs).and_return("test")
@d = mock("design")
@d.stub!(:name).and_return("test")
@d.stub!(:photo).and_return("medium_size.jpg")
@designs.stub!(:at).with(0).and_return(@d)
end
@mulderp
mulderp / gist:1044938
Created June 24, 2011 14:51
Story from pivotaltracker
<story>
<id type="integer">3933654</id>
<project_id type="integer">30330885</project_id>
<story_type>feature</story_type>
<url>http://www.pivotaltracker.com/story/show/39654</url>
<estimate type="integer">-</estimate>
<current_state>unscheduled</current_state>
<description>Scenario:
In order to announce multiple updates at once,
As a customer
{ "_id" : ObjectId("4ee8e90bb9eab0492d000002"), "format" : { "_id" : ObjectId("4ee8e8f9b9eab0492d000001"), "height" : 12, "width" : 8 }, "pages" : 124, "title" : "Kochen" }
@mulderp
mulderp / gist:1879401
Created February 21, 2012 22:17
Possible spec for newsfeed with Streama
describe "Activity.publish" do
it "pushes activity to public newsfeed" do
@activity = Activity.publish(:share, {:actor => user, :object => link, :target_object => newsfeed, :receivers => @send_to}) ## @send_to ==> could be replaced with Activity.public_audience ??
@activity.receivers.size.should == 2
end
end
@mulderp
mulderp / gist:3032032
Created July 2, 2012 08:44
console stubs for backbone
object = { a: '1', b: '2' }
object.sub_scope = { x: '1', y: '2' }
Todomvc =
init: ->
view = new Todomvc.AppView()
view.initialize(object)
class Todomvc.AppView
initialize: (object) ->