Skip to content

Instantly share code, notes, and snippets.

@raa0121
Created November 10, 2011 19:12
Show Gist options
  • Save raa0121/1355819 to your computer and use it in GitHub Desktop.
Save raa0121/1355819 to your computer and use it in GitHub Desktop.
酒が飲めるプログラミング
//http://twitter.com/hotwatermorning/status/134626644336967682
for(int i = 1; i <= 12; ++i) { std::cout << i << "月はC++で酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!♪" << std::endl; }
//http://twitter.com/koropicot/status/134636864610107393
foreach (var m in Enumerable.Range(1, 12)) Console.WriteLine("{0}月はC#で酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!♪", m);
(* http://twitter.com/mzsm_j/status/134627978297610240 *)
[1..12] |> Seq.iter (printfn "%d月はF#で酒が飲めるぞー!。酒が飲める飲めるぞー!、酒が飲めるぞー!♪")
--http://twitter.com/choplin/status/134639797569454081
main = putStrLn $ unlines ms where ms = [(show m)++"月はHaskellで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!"|m<-[1..12]]
#http://twitter.com/linerlock/status/134636781118304256
1 to (12) select(n, n + "月はIoで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!" ) foreach(s, s println);
//http://twitter.com/tyage/status/134636452796571649
(function(m){ for(var i=1;i<=m;i++) console.log(i + "月はJSで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!"); })(12);
(* http://twitter.com/OKU_K/status/134631129192996864 *)
List.iter (fun i -> print_string ((string_of_int) i ^"月はOCamlで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!♪\n")) [1;2;3;4;5;6;7;8;9;10;11;12];;
#http://twitter.com/mzsm_j/status/134627978297610240
for m in range(1,13): print u"%s月はPythonで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!♪" % m
#http://twitter.com/tadsan/status/134627152099409920
(1..12).each{ |m| puts "#{m}月はRubyで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!♪" }
"http://twitter.com/manga_osyo/status/134640503319822336
echo map(range(1, 12), "v:val.'月はVimで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!♪'")
//http://twitter.com/takeshik/status/134636537810919424
Enumerable.(Range 1 12).(Select {+ $0 '月は Yacq で酒が飲める飲めるぞー!酒が飲めるぞー!'}).(ForEach {$0.(print)})
//http://twitter.com/decimalbloat/status/134633022006898688
BOOST_PP_ENUM_SHIFTED_BINARY_PARAMS(13, BOOST_PP_EMPTY(), 月はプリプロセッサで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー! BOOST_PP_INTERCEPT)
--http://twitter.com/SubaruG/status/134634767542009857
--http://twitter.com/SubaruG/status/134634893958324225
forM_ [1..12] $ \ i -> do printf "%d月はdo式で酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!\n" i
--http://twitter.com/SubaruG/status/134635581681565696
--http://twitter.com/SubaruG/status/134635657090969600
sequence_ $ do i <- [1..12] return $ do printf "%d月はリストモナドで酒が飲めるぞー!酒が飲める飲めるぞー!酒が飲めるぞー!" i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment