住信SBIネット銀行 ブドウ支店 102 普通 4821329 オサ シュンスケ
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Unofficial translation of MIX PENLa PRO user manual
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() { | |
// Config | |
var weeks = 52; | |
var beginningOfWeek = 1; // 0:Sun, 1:Mon, 2:Tue, 3:Wed, 4:Thu, 5:Fri, 6:Sat | |
// Functions | |
function formatDate(date) { | |
return [date.getFullYear().toString(), ('0' + (date.getMonth() + 1)).slice(-2), ('0' + date.getDate()).slice(-2)].join("-"); |
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
class Hash | |
def deep_find(key) | |
key?(key) ? self[key] : self.values.first{|v| v.deep_find(key) if v.respond_to?(:deep_find) }.deep_find(key) | |
end | |
end |
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
#!/bin/sh | |
#chkconfig: 2345 95 5 | |
#description: unicorn shell | |
NAME="unicorn" | |
ENV=production | |
RAILS_ROOT="/home/connect/production/current" | |
LOCK=/var/lock/subsys/$NAME | |
PID="${RAILS_ROOT}/tmp/pids/unicorn.pid" |
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
sudo yum install git gcc openssl-devel nginx postgresql-devel gcc-c++ | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
rbenv install 2.1.2 |
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
res=0 | |
n=1 | |
while [ $res -eq 0 ] | |
do | |
bundle exec rake spec | |
res=$? | |
echo $n | |
n=$((n + 1)) | |
done |
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
require 'benchmark' | |
require 'securerandom' | |
require 'random_bell' | |
REPEAT = 10 ** 6 | |
Benchmark.bmbm do |b| | |
b.report("Random "){ rand = Random.new ; REPEAT.times{ rand.rand } } |
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
def count_by_word(string) | |
hash = Hash.new(0) | |
string.split(' ').each{|word| hash[word] += 1} | |
hash | |
end | |
describe "count by word" do | |
it "counts by word" do | |
expect(count_by_word("no ruby no life")).to eq("no" => 2, "life" => 1, "ruby" => 1) | |
end |
NewerOlder