Mensch font, Source Code Pro, Webkit, Chrome, Firefox, Kaleidoscope, iTerm, Sublime Text, Sequel Pro, Codekit,
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Jigsaw puzzle</title> | |
| <script type="text/javascript"> | |
| function save(filename, data) | |
| { | |
| var blob = new Blob([data], {type: "text/csv"}); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- SVG web to turn svg into flash for IE | |
| This might not be working on bl.ocks.org for the following reasons: | |
| 1) MIME types not added to the bl.ocks.org webserver: | |
| AddType text/x-component htc | |
| AddType application/x-shockwave-flash swf | |
| AddType image/svg+xml svg |
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 girl, relaxed. | |
| # | |
| # Factory.define :user do |f| | |
| # f.login 'johndoe%d' # Sequence. | |
| # f.email '%{login}@example.com' # Interpolate. | |
| # f.password f.password_confirmation('foobar') # Chain. | |
| # end | |
| # | |
| # Factory.define :post do |f| | |
| # f.user { Factory :user } # Blocks, if you must. |
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
| var inject = function(iterable, initial, func) { | |
| var cur = initial | |
| for(var i = 0;i < iterable.length;i++) { | |
| cur = func(cur, iterable[i]) | |
| } | |
| return cur | |
| } | |
| var map = function(arr, func) { | |
| return inject(arr, [], function(memo, val) { |