This file contains hidden or 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
Factory = function() { | |
var factoryName; | |
var factories = {}; | |
this.define = function(name, collection, attributes) { | |
factoryName = name; | |
factories[name] = { | |
name: name, | |
collection: collection, | |
attributes: attributes, |
This file contains hidden or 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
Session.setDefault('forms', 1); | |
Template.main.helpers({ | |
forms: function () { | |
return _.range(1, Session.get('forms') + 1); | |
} | |
}); | |
Template.main.events({ | |
'click .add': function(event, template) { |
This file contains hidden or 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
// for the sake of clarity | |
Blogs = new Meteor.Collection('blogs'); | |
// Basic main app routes domain.com/* | |
// No first parameter name passed here, so assume the main routes | |
RouteController.add({ | |
layout: 'layout', | |
map: [ | |
{ name: 'home', root: true }, // could set 'root' to define the / route if we skipped 'path' for other routes | |
{ name: 'about' }, // we could assume path /about/ from name |
This file contains hidden or 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
<style type="text/css"> | |
#ffs { | |
top: 0; | |
left: 0; | |
position: fixed; | |
padding: 5px; | |
background: #DDD; | |
} | |
#ffs input { |
This file contains hidden or 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
# Plot random pixels. | |
require 'rubygame' | |
Width = 200 | |
Height = 200 | |
class Array | |
def rand | |
self[Kernel.rand(self.length)] | |
end | |
end |
This file contains hidden or 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
""" | |
βββββββββββββββββββββββββββββ | |
ββββββββββββββββββββββββββββββ | |
βββββββββββββββββββββββββββββββ | |
ββββββββββββββββββββββββββββββββ | |
βββββββββββββββββββββββββββββββ | |
ββββββββββββββββββββββββββββββ | |
ββββββββββββββββββββββββββββ | |
βββββββββββββββββββββββββββββ | |
βββββββββββββββββββββββββββββ |
NewerOlder