DSL で MapReduce の定義を書いて、Mapper や Reducer 単体テストを RSpec で書けると便利だと思う。
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
// ==UserScript== | |
// @name Report RT Dake ni Naru | |
// @namespace http://ssig33.com/ | |
// @description Destroy RT Igai from Report | |
// @include http://sinsai.info/ushahidi/admin/reports* | |
// @include http://ushahidi.localhost/admin/reports* | |
// ==/UserScript== | |
for (q = 0; q < 30; q ++) { | |
var ns = document.getElementsByTagName("tr"); | |
for (i = 0; i < ns.length; i++) { |
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
// ==UserScript== | |
// @name section_numbers_for_real_world_haskell.user.js | |
// @namespace http://yuyat.jp/ | |
// @description Gives section numbers for Real World Haskell book online. | |
// @include http://book.realworldhaskell.org/read/* | |
// ==/UserScript== | |
(function (elements) { | |
var n = 1; | |
for (var i in elements) { |
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
main(){for(var i=0;i++<100;)print((i%3<1?'Fizz':'')+(i%5<1?'Buzz':'')||i);} |
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
function Class (bar) { | |
this.foo = bar; | |
} | |
Class.prototype.method = function () { | |
return this.foo; | |
}; | |
var instance = new Class('baz'), | |
func = (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
<?php | |
$words = ['マジで', 'ヤバい', 'ウケルー']; | |
while (fgets(STDIN) !== "\n") echo $words[array_rand($words)], PHP_EOL; |
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
source 'https://rubygems.org' | |
gem 'mongo_mapper' | |
gem 'bson_ext' | |
gem 'activemodel', '< 5' |