- type
- state
- status
- data (yes, and datum, datas, etc.)
- correct, especially in tests. What is correctness in this context?
- object
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
Constitution of a Charitable Incorporated Organisation whose only voting | |
members are its charity trustees | |
(‘Foundation’ model constitution) | |
Date of constitution (last amended): | |
........................................................................... | |
1. Name |
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
http://www.bbc.co.uk/food/recipes/10minutepizza_87314 | |
http://www.bbc.co.uk/food/recipes/15_minute_pasta_33407 | |
http://www.bbc.co.uk/food/recipes/3d_biscuits_29555 | |
http://www.bbc.co.uk/food/recipes/3wayswithlemoncurd_67266 | |
http://www.bbc.co.uk/food/recipes/_81487 | |
http://www.bbc.co.uk/food/recipes/aberdeenbutteriesrow_92370 | |
http://www.bbc.co.uk/food/recipes/abundant_steamed_sea_22932 | |
http://www.bbc.co.uk/food/recipes/acaciahoneyglazedchi_83634 | |
http://www.bbc.co.uk/food/recipes/ackeeandsaltfish_86812 | |
http://www.bbc.co.uk/food/recipes/aclassicspongecakewi_9406 |
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
failures = {} | |
ARGF.read.split(/\n/).each do |line| | |
matches = line.match(/\Acucumber ([^:]+):(\d+)/) or next | |
(failures[matches[1]] ||= []) << matches[2].to_i - 1 | |
end | |
failures.each do |file, indices| | |
lines = File.readlines(file) | |
indices.reverse.each do |index| | |
indentation = lines[index][/\A\s+/] |
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
Unique versions of each module | |
8 glob | |
8 async | |
7 qs | |
7 lodash | |
7 commander | |
6 source-map | |
5 uglify-js | |
5 strip-ansi |
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
require "benchmark" | |
Benchmark.benchmark do |b| | |
b.report("Some job"){ do_some_job } | |
b.report("Another job"){ do_another_job } | |
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
if (!Function.prototype.bind) { | |
Function.prototype.bind = function bind(thisValue){ | |
var func = this; | |
return function() { | |
return func.apply(thisValue, arguments); | |
} | |
} | |
} |
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
var Animation = Class(function Animation() {}); | |
Animation.mixin(Canvas); | |
Animation.prototype.extend(Event.Listener); | |
Animation.prototype.extend({ | |
reset: function() { | |
this.relativePosition = 0; | |
this.maxPosition = this.totalFrames - 1; |
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
*.dot |
From http://www.meetup.com/hoodlums/events/91349692/
Define a function cat
that takes an arbitrary number of strings and returns the concatenation of all strings. You'll need the FlexibleInstances
extension (but should not need any others). When calling in GHCi, you will have to annotate the result type of the function. Examples:
> cat :: String
""
> cat "foo" "bar" :: String
"foobar"
> cat "Haskell" "Hoodlums" "Meetup" :: String