Before you do anything, perform a factory reset.
Lens: Manual
White bal: AT1
# features | |
feature -MOTOR_STOP | |
feature VBAT | |
feature RX_SERIAL | |
feature SOFTSERIAL | |
feature FAILSAFE | |
feature TELEMETRY | |
feature ONESHOT125 | |
feature BLACKBOX |
ignore([%r{^bin/*}, %r{^config/*}, %r{^db/*}, %r{^lib/*}, %r{^log/*}, %r{^public/*}, %r{^tmp/*}]) | |
guard :rspec, :spec_paths => ['spec/models', 'spec/lib'], | |
cmd: 'spring rspec -f doc --tag ~@slow', | |
# all_after_pass: true, | |
all_on_start: false, | |
failed_mode: :keep do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } |
require "active_record" | |
namespace :db do | |
db_config = YAML::load(File.open('config/database.yml')) | |
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
desc "Create the database" | |
task :create do | |
ActiveRecord::Base.establish_connection(db_config_admin) |
class Spree::Calculator::Shipping::QualifiedFreeShipping < Spree::Calculator | |
preference :minpurchase, :decimal, :default => 0 | |
attr_accessible :preferred_minpurchase | |
def self.description | |
Spree.t(:qualified_free_shipping) | |
end | |
def compute(package) | |
return 0 |
/** | |
* | |
* Here's a thing that will look through all the text nodes of a document, and | |
* upon encountering an emoji codepoint, will replace it with an image. | |
* For now, those images are pulled from GitHub, which isn't very nice, so I | |
* need to find a more suitable host. | |
* | |
* Much of this code was gleaned from staring at the minified GitHub JS. | |
* | |
* Copyright (c) 2013 Mark Wunsch. Licensed under the MIT License. |
curl -i -H "X-Spree-Token: YOUR_TOKEN_ID" http://0.0.0.0:3000/api/products.json
curl -i -H "X-Spree-Token: YOUR_TOKEN_ID" http://0.0.0.0:3000/api/products/706676762.json
curl -i -X PUT -H "X-Spree-Token: YOUR_TOKEN_ID" -d "product[name]=Headphones" http://0.0.0.0:3000/api/products/706676762.json
Based on good work found at http://goo.gl/bKjJe
If you have Nginx running, you can run Yard as a rack app to serve docs for locally installed Gem.
mkdir -p ~/Dropbox/yard/public
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |