- A.super
- B.begin
- C.try
- D.goto
def foo (a, *b)
p a
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
以下転載:
var eventify = function(arr, callback) { | |
arr.push = function(e) { | |
Array.prototype.push.call(arr, e); | |
callback(arr); | |
}; | |
}; | |
var array = [1,2,3]; | |
eventify(array, function(newArray) { |
class BaseUploader < CarrierWave::Uploader::Base | |
attr_reader :width, :height | |
before :cache, :capture_size | |
... | |
# for image size validation | |
# fetching dimensions in uploader, validating it in model | |
def capture_size(file) | |
if version_name.blank? # Only do this once, to the original version |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
#{RUBY_HOME}/lib/ruby/1.9.1/webrick/config.rb の | |
:DoNotReverseLookup => nil | |
を | |
:DoNotReverseLookup => true | |
に修正する。 |