I hereby claim:
- I am alexchien on github.
- I am boombastic (https://keybase.io/boombastic) on keybase.
- I have a public key ASCtlT0xcckmp-r90Xx0aV3z8CJ6_6OUL-s8ouBGn0mYJgo
To claim this, I am signing this object:
| { | |
| "ethereum": { | |
| "address": [ | |
| { | |
| "address": "0x4710573b853fdd3561cb4f60ec9394f0155d5105", | |
| "balances": [ | |
| { | |
| "currency": { | |
| "symbol": "USDT" | |
| }, |
I hereby claim:
To claim this, I am signing this object:
| 0x008795718efe70dfaA6d6cd4633E1bD5c17aA68C |
| require 'active_record' | |
| require 'sqlite3' | |
| require 'logger' | |
| require 'aasm' | |
| ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
| # ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| ActiveRecord::Migration.create_table :documents do |t| | |
| t.string :aasm_state |
| // This is the rule definition for demo dice game | |
| // All data structrue are defined in JSON in javascript, and being mapped to variant object in C++, be packed before storing in database | |
| // Validate and parse this script before uploading, tools: http://lisperator.net/uglifyjs/parser | |
| // require("play.js") | |
| // TODO: Add the substitute for FC_CAPTURE_AND_THROW and FC_ASSERT | |
| // TODO: Input: {game_input}, Output: {operation_game_data, wallet_transaction_record, game_result_transaction} | |
| var | |
| PLAY = PLAY || {}, |
| #!/bin/bash | |
| base_address="0xa46b7974f4f43af50e9c4795251303d7066ed67f" | |
| instance_type=`curl http://169.254.169.254/latest/meta-data/instance-type` | |
| if [ "$instance_type" = "g2.2xlarge" ]; then | |
| mining_thread=6 | |
| gpu=1 | |
| hashrate=9 | |
| elif [ "$instance_type" = "g2.8xlarge" ]; then |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
This is all based on the [alpha release][1].
From the built-in help system:
For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).
These are simple setting = value listings where the value is a format string in which other variables can be referenced.
| rails_env = ENV['RAILS_ENV'] | |
| raise "Please specify RAILS_ENV." unless rails_env | |
| rails_root = ENV['RAILS_ROOT'] || File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) | |
| RESQUE_PROCESSORS = [ | |
| [1, "foo,bar"], | |
| [2, "baz"], | |
| [3, "demo"] | |
| ] |
| rails_env = ENV['RAILS_ENV'] | |
| raise "Please specify RAILS_ENV." unless rails_env | |
| rails_root = ENV['RAILS_ROOT'] || File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) | |
| God.watch do |w| | |
| w.dir = "#{rails_root}" | |
| w.name = "resque-scheduler" | |
| w.group = 'resque' | |
| w.interval = 30.seconds | |
| w.env = {"RAILS_ENV"=>rails_env, "BUNDLE_GEMFILE"=>"#{rails_root}/Gemfile"} |