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
# coding: utf-8 | |
# n=5で50%のつもり | |
def hit?(n) | |
rand(10) <= (n-1) ? true : false | |
end | |
# パターン1:かぶりなし=10回成功したら終わり | |
def pattern1(r) | |
count = 0 |
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() { | |
var Fragment, FragmentController, FragmentView, User, | |
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
$.ajaxSetup({ | |
cache: false | |
}); | |
User = (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
import java.io.PrintWriter | |
import scala.collection.mutable.ListBuffer | |
import scala.io.Source | |
import scala.actors._ | |
import scala.actors.Actor._ | |
object RecommendIndexBuilder { | |
// Massage for Actors | |
case class Ready() |
NewerOlder