Skip to content

Instantly share code, notes, and snippets.

View sanemat's full-sized avatar
🍢

Matt Murahashi Kenichi sanemat

🍢
View GitHub Profile
@sanemat
sanemat / 0-yet-another-rubygems-org.md
Last active August 29, 2015 13:55
Yet Another Rubygems.org

Easy to search rubygems, Easy to check readme, Easy to compare code

rubygems.org ruby-toolbox metacpan handcooler-search

RubyHandcooler

@sanemat
sanemat / update.md
Last active August 29, 2015 13:57
Update npms(like bundle update, carton update)

Update npms

Follow these by google search

david update

npm update --save

@sanemat
sanemat / how-my-project-appears-on-the-ruby5.md
Last active August 29, 2015 13:57
How to picked up in the Ruby5

How my project appears on the Ruby5 Podcast?

ruby5

Murahashi Sanemat Kenichi

at Oh My Glasses Inc.

@sanemat
sanemat / bundle-env.txt
Last active August 29, 2015 13:57
bundler error
# bundle env
Bundler 1.6.0
Ruby 2.1.1 (2014-02-24 patchlevel 76) [x86_64-linux]
Rubygems 2.2.2
GEM_HOME
Bundler settings
path
Set for your local app (/code/github.com/sanemat/snake.tachikoma.io/.bundle/config): "vendor/bundle"
disable_shared_gems
$ spring rake middleware
use Rack::Sendfile
use ActionDispatch::Static
use Rack::Lock
use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007f98f114f1e0>
use Rack::Runtime
use Rack::MethodOverride
use ActionDispatch::RequestId
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions
# Count cpu for Ubuntu
# https://github.com/grosser/parallel/blob/806762374c950e3e908dfc3f3f0b37564705bcaa/lib/parallel.rb
cat /proc/cpuinfo | grep -E '^processor' | wc -l
@sanemat
sanemat / initial_value.rb
Created May 20, 2014 08:20
なぜかよくやる
class Foo
def bar(baz: baz, qux: qux)
end
end
# ってよく書いてしまうのなんでなんだろう?
# だいたいより正しい意図としては2.1系ならこう書きたいときに上のように書いてしまう傾向がある
class Foo
def bar(baz:, qux:)
@sanemat
sanemat / gulp-mocha-with-power-assert.txt
Created June 4, 2014 11:02
gulp-mocha with power-assert
$ gulp watch --require intelli-espower-loader
[gulp] Requiring external module intelli-espower-loader
[gulp] Using gulpfile ~/work/js-study/node-53cal-jp-scraper/gulpfile.js
[gulp] Starting 'watch'...
gulp.run() has been deprecated. Use task dependencies or gulp.watch task triggering instead.
[gulp] Starting 'lint'...
[gulp] Starting 'istanbul'...
[gulp] Finished 'watch' after 548 ms
[gulp] Finished 'lint' after 730 ms
power
# A sample Gemfile
source 'https://rubygems.org'
gem 'rspec'
gem 'byebug'