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" |
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
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
$ 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
sidekiq [options] | |
-c, --concurrency INT processor threads to use | |
-d, --daemon Daemonize process | |
-e, --environment ENV Application environment | |
-g, --tag TAG Process tag for procline | |
-i, --index INT unique process index on this machine | |
-p, --profile Profile all code run by Sidekiq | |
-q, --queue QUEUE[,WEIGHT]... Queues to process with optional weights | |
-r, --require [PATH|DIR] Location of Rails application with workers or file to require | |
-t, --timeout NUM Shutdown timeout |
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
<activity | |
android:name=".ui.MainActivity_" | |
android:label="@string/app_name" | |
android:uiOptions="splitActionBarWhenNarrow" > | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
<intent-filter> |
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
Remote Name: Galaxy Nexus | |
Connected to Device: FC:C7:34:B5:30:DA | |
Wait For Incoming Connection Request | |
Bluetooth pin is set too: 0000 | |
Information request | |
SDP Incoming Connection Request | |
SDP Configuration Request | |
SDP Successfully Configured | |
Disconnected SDP Channel | |
HCI Disconnected from Device |
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
private Recipe114Handler mHander; | |
private static class Recipe114Handler extends Handler { | |
private final WeakReference<Recipe114Activity> mActivity; | |
public Recipe114Handler(Recipe114Activity activity) { | |
mActivity = new WeakReference<Recipe114Activity>(activity); | |
} | |
@Override |
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
public class CopyOfRecipe056Activity extends ListActivity { | |
ItemAdapter mAdapter; | |
ArrayList<Item> mItems; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
if (savedInstanceState == null) { | |
mItems = new ArrayList<Item>(); |
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
Process: Xcode [924] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: com.apple.dt.Xcode | |
Version: 4.3.2 (1177) | |
Build Info: IDEApplication-1177000000000000~6 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [490] | |
Date/Time: 2012-06-07 18:29:13.447 +0900 | |
OS Version: Mac OS X 10.7.4 (11E53) |
NewerOlder