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
// Torque Alternative Syntax | |
if (!isObject(FollowMouseBehavior)) | |
%template = new BehaviorTemplate(FollowMouseBehavior); | |
%template.friendlyName = "..."; | |
%template.behaviorType = "..."; | |
%template.description = "..."; | |
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
# --- Variables | |
!width = 1008px | |
!dark = #141414 | |
!light_grey = #636363 | |
!lighter_grey = #efefef | |
!lighter_lighter_grey = #e3e3e3 | |
!light_blue = #119de5 | |
# --- Mixins |
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
// JSpec - Core - Copyright TJ Holowaychuk <[email protected]> (MIT Licensed) | |
(function(){ | |
JSpec = { | |
version : '0.9.6', | |
main : this, | |
suites : [], |
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
describe 'ShoppingCart' | |
before_each | |
.cart = new ShoppingCart | |
end | |
describe 'addProducts' | |
it 'should add several products' | |
.cart.addProduct('cookie') | |
.cart.addProduct('icecream') | |
.cart.should.have 2, 'products' |
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
// Screw.Unit | |
expect(person.pets.length).to(equal, 2) | |
// JSpec | |
person.should.have 2, 'pets' |
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
// --- Screw.Unit | |
describe('Person', function(){ | |
var person | |
before(function(){ | |
person = new Person | |
}) | |
describe('.addPet', function(){ |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'commander' | |
program :version, '0.0.1' | |
program :description, 'Does some foo' | |
global_option '-c', '--config FILE', 'Load configuration' |
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
./foo bar --verbose --config rawr | |
verbose = true | |
config = "rawr" |
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
// Alternative JavaScript Syntax | |
Person = :(name, address) { @name!, @address! } | |
Person::inspect = :{ <: "{@name} lives at {@address}" } | |
tj := Person('TJ', '314 Bessborough ave') | |
bob := Person('Bob', 'Some place') | |
[tj, bob].each(:(person){ print(person.inspect()) }) |
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
--- | |
--- Tag | |
--- | |
data Tag = Tag { | |
tagType :: String, | |
tagAttrs :: [Attr] | |
} |