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
$ irb [~] | |
irb(main):001:0> require 'json' | |
=> true | |
irb(main):002:0> 1.to_json | |
=> "1" | |
irb(main):003:0> JSON.load(1.to_json) | |
=> 1 | |
irb(main):004:0> 1 === JSON.load(1.to_json) | |
=> true | |
irb(main):005:0> "hoge" === JSON.load("hoge".to_json) |
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
NSLog(@"%f", CMTimeGetSeconds(CMTimeMake(3.25, 1))); // 3.000000 | |
NSLog(@"%f", CMTimeGetSeconds(CMTimeMake(3.25 * 100, 100))); // 3.250000 | |
NSLog(@"%f", CMTimeGetSeconds(CMTimeMakeWithSeconds(3.25, 1))); // 3.000000 |
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
# app/models | |
git grep -l ActiveRecord::Base -- app/models | xargs sed -i '' "s/ActiveRecord::Base/ApplicationRecord/g" | |
# test/controllers | |
git grep -l ActionController::TestCase -- test/controllers | xargs sed -i '' "s/ActionController::TestCase/ActionDispatch::IntegrationTest/g" |
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
sudo yum -y update | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install git libcurl-devel libcurl jansson-devel jansson | |
# install cpuminer | |
git clone --recursive https://github.com/pooler/cpuminer.git | |
cd cpuminer | |
git checkout v2.3.3 | |
./autogen.sh | |
./configure CFLAGS="-O3" |
OlderNewer