I hereby claim:
- I am lime on github.
- I am lime (https://keybase.io/lime) on keybase.
- I have a public key whose fingerprint is 15DD A4D7 03B7 B759 89B0 CD65 D91B 06E8 58F6 FD9A
To claim this, I am signing this object:
# Modernizr 2.8.3, list collected from https://github.com/Modernizr/Modernizr/tree/v2.8.3 | |
git grep -E '\.(no-)?(js|adownload|apng|applicationcache|audio|audiodata|backgroundsize|battery|bgpositionshorthand|bgpositionxy|bgrepeatround|bgrepeatspace|blobconstructor|blobworkers|borderimage|borderradius|boxshadow|canvas|canvastext|classlist|contenteditable|contentsecuritypolicy|cookies|cors|createelement|cssanimations|csscalc|csscolumns|cssfilters|cssgradients|cssmask|csspositionsticky|cssreflections|cssremunit|cssresize|cssscrollbar|csstransforms|csstransforms3d|csstransitions|cssvhunit|cssvmaxunit|cssvminunit|cssvwunit|cubicbezierrange|customprotocolhandler|dart|datalistelem|dataset|datauri|dataview|dataworkers|details|devicemotion|deviceorientation|display|draganddrop|emoji|eventsource|exif|fileinput|filereader|filesystem|flexbox|flexboxlegacy|fontface|formvalidation|framed|fullscreen|gamepads|generatedcontent|geolocation|getusermedia|hashchange|history|hsla|ie8compat|indexedDB|inlinesvg|json|lastchild|localize |
// ... | |
// ----------------------------------------------------------------------------- | |
// Import JS generated CSS | |
// ----------------------------------------------------------------------------- | |
@import "OPTIONAL:../javascripts/bundle/jscss/main"; | |
@import "OPTIONAL:../javascripts/bundle/jscss/admin"; |
--- | |
phraseapp: | |
project_id: YOUR-PROJECT-ID | |
file_format: yml | |
push: | |
sources: | |
- file: config/locales/activerecord.<locale_name>.yml | |
params: | |
tags: activerecord | |
update_translations: true |
npm shrinkwrap && ~/code/Syrupy/scripts/syrupy.py ~/code/shrinkpack/index.js |
#!/bin/sh | |
mkdir /tmp/ruby-build-patch | |
cd /tmp/ruby-build-patch | |
# download the patches | |
git clone git@github.com:skaes/rvm-patchsets.git | |
# download and rename the ruby-build version definition | |
wget https://raw.github.com/sstephenson/ruby-build/master/share/ruby-build/2.1.2 |
require 'spec_helper' | |
FactoryGirl.factories.each do |factory| | |
describe "The #{factory.name} factory" do | |
subject { build(factory.name) } | |
it { should be_valid } | |
factory.defined_traits.each do |trait| | |
describe "with trait #{trait.name}" do |
# Override default options for server command | |
# This example changes default development host to 127.0.0.1 | |
require 'rails/commands/server' | |
module Rails | |
class Server | |
new_defaults = Module.new do | |
def default_options | |
environment = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
file_name = 'Gemfile' | |
text = File.read(file_name) | |
new_contents = text.gsub(/^\s*gem ['"]([\w_\-]+)['"]$/) do | |
original = Regexp.last_match[0] | |
gem_name = Regexp.last_match[1] | |
current_version = Gem.loaded_specs[gem_name].version.to_s | |
"#{original}, '>= #{current_version}'" | |
end |
from numpy import * | |
from scipy.stats import beta | |
class BetaBandit(object): | |
def __init__(self, num_options=2, prior=(1.0,1.0)): | |
self.trials = zeros(shape=(num_options,), dtype=int) | |
self.successes = zeros(shape=(num_options,), dtype=int) | |
self.num_options = num_options | |
self.prior = prior |