latest is a small bash script that fetches the latest version of a JavaScript library from the net and stores it in a local file.
Copy latest to a directory in your path, e.g. /usr/local/bin or ~/bin.
kvz: "I'm recommending these Mac apps to a colleague who's losing his OSX virginity: https://gist.github.com/1372883. Anything you think I should add?"
Don't forget to look at the suggestions at the bottom, there's some cool stuff in there.
| function getSafe (self, uuid) { | |
| if (typeof self === 'object' || typeof self === 'function') var safe = {} | |
| if (Array.isArray(self)) var safe = [] | |
| var recurse = [] | |
| Object.defineProperty(self, uuid, {}) | |
| var attrs = Object.keys(self).filter(function (i) { | |
| if (i === uuid) return false |
Not this is rocket sience :)
Fill the water heater with a finger more than 1 liter of water. Set it on its power-base, hit the button that’s all the way out on the handle. This starts the heating process. Now hit the “minus” (“-”) button so you see a red light on the 90° marker. Let it heat up. In the meantime:
## Most important settings
Create a new facebook app (1) and make sure the canvas url (2) in the basic tab matches the host and port configured with Capybara.server_port and Capybara.app_host. Activating sandbox mode (3) in the advanced tab enables you to roll without providing an SSL canvas url. You want to set the display mode (4) of your facebook dialogs to page, which is also the default.
| function isRetina(){ | |
| return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
| ('matchMedia' in window && matchMedia("(min-resolution:144dpi)").matches)) | |
| } |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| # coding: utf-8 | |
| require "json" | |
| require "java" | |
| import "java.util.concurrent.ConcurrentHashMap" | |
| class Session | |
| def self.current | |
| @current ||= ConcurrentHashMap.new |