Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| /** | |
| * Enable route to __noSuchMethod__ when unknown method calling. | |
| * | |
| * @param {Object} obj Target object. | |
| * @return {Object} | |
| */ | |
| function enableMethodMissing(obj) { | |
| var functionHandler = createBaseHandler({}); | |
| functionHandler.get = function(receiver, name) { |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // Promessas podem resolver a sua vida. | |
| // Mas se o Javascript foi pensado desta forma, com a possibilidade | |
| // de funções dentro de funções, então existiria algum recurso para resolver este problema? | |
| // Bom, não tem um recurso especifico que vai fazer a sua vida mudar, mas com algum conhecimento | |
| // sobre a linguagem, você acaba descobrindo que isso pode acontecer. | |
| // Primeiro exemplo - #1 | |
| function sayHello () { |
| #!/bin/sh | |
| VERSION=0.8.6 | |
| PLATFORM=darwin | |
| ARCH=x64 | |
| PREFIX="$HOME/node-v$VERSION-$PLATFORM-$ARCH" | |
| mkdir -p "$PREFIX" && \ | |
| curl http://nodejs.org/dist/v$VERSION/node-v$VERSION-$PLATFORM-$ARCH.tar.gz \ | |
| | tar xzvf - --strip-components=1 -C "$PREFIX" |
A list of slides from nodeconf
| ❷ > QUEUE=* rake resque:work --trace | |
| ** Invoke resque:work (first_time) | |
| ** Invoke resque:preload (first_time) | |
| ** Invoke resque:setup (first_time) | |
| ** Execute resque:setup | |
| ** Execute resque:preload | |
| rake aborted! | |
| No such file to load -- devise/confirmations_controller | |
| /Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:306:in `rescue in depend_on' | |
| /Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:301:in `depend_on' |
This document is an adaptation of the instructions found here: http://vagrantup.com/docs/base_boxes.html
These instructions are specifically for 64-bit CentOS and Puppet.
Created with the following software:
| require "net/http" | |
| # Example Usage: | |
| # | |
| # use Rack::Proxy do |req| | |
| # if req.path =~ %r{^/remote/service.php$} | |
| # URI.parse("http://remote-service-provider.com/service-end-point.php?#{req.query}") | |
| # end | |
| # end | |
| # |
| require 'net/http' | |
| class ServerProxy | |
| def self.call(env) | |
| if env["PATH_INFO"] =~ /^\/server_proxy/ | |
| request = Rack::Request.new(env) | |
| params = request.params | |
| Net::HTTP.start(params["service_url"]) {|http| | |
| req = Net::HTTP::Get.new(params["service_path"]) |