Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def task num | |
puts "Start thread ##{num}" | |
Thread.new do | |
sleep 1 | |
num * num | |
end | |
end | |
inputs = [1,2,3,4,5] |
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
# -*- coding: utf-8 -*- | |
s = 'か な' | |
p s =~ /^[\p{hiragana}\s]+$/ | |
p s =~ /^[\s\p{hiragana}]+$/ |
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
--- wscript.org 2012-02-29 11:51:35.000000000 +0900 | |
+++ wscript 2012-02-29 11:50:50.000000000 +0900 | |
@@ -22,6 +22,7 @@ | |
conf.check_tool('compiler_cxx') | |
conf.check_tool('unittest_gtest') | |
conf.check_tool('gnu_dirs') | |
+ conf.env.LINKFLAGS += ['-flat_namespace'] | |
env = conf.env | |
ver = env.CC_VERSION |
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
--- wscript.org 2012-02-29 11:23:32.000000000 +0900 | |
+++ wscript 2012-02-29 11:24:20.000000000 +0900 | |
@@ -27,6 +27,7 @@ | |
def configure(conf): | |
conf.env.CXXFLAGS += ['-O2', '-Wall', '-g', '-pipe'] | |
+ conf.env.LINKFLAGS += ['-flat_namespace'] | |
conf.load('compiler_cxx') | |
conf.load('unittest_gtest') |
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
require 'formula' | |
class Jubatus < Formula | |
homepage 'http://jubat.us/' | |
url 'https://github.com/jubatus/jubatus/tarball/jubatus-0.2.0' | |
md5 '7cb01e7509e7b04dd3d07a3547db21f5' | |
depends_on 'glog' | |
depends_on 'pkg-config' | |
depends_on 'pficommon' |