AWS query-instance_method docs
export AWS_ACCESS_KEY_ID=‘XXXX’
export AWS_SECRET_ACCESS_KEY=‘XXXX’# ENV['AWS_ACCESS_KEY_ID']
# ENV['AWS_SECRET_ACCESS_KEY']| $ npm -v | |
| module.js:338 | |
| throw err; | |
| ^ | |
| Error: Cannot find module 'npmlog' | |
| at Function.Module._resolveFilename (module.js:336:15) | |
| at Function.Module._load (module.js:278:25) | |
| at Module.require (module.js:365:17) | |
| at require (module.js:384:17) | |
| at /usr/local/lib/node_modules/npm/bin/npm-cli.js:18:11 |
| RSpec::Matchers.define :terminate do |code| | |
| actual = nil | |
| def supports_block_expectations? | |
| true | |
| end | |
| match do |block| | |
| begin | |
| block.call |
| # activerecord-3.0.0/lib/active_record/connection_adapters/mysql_adapter.rb | |
| # Maps logical Rails types to MySQL-specific data types. | |
| def type_to_sql(type, limit = nil, precision = nil, scale = nil) | |
| return super unless type.to_s == 'integer' | |
| case limit | |
| when 1; 'tinyint' | |
| when 2; 'smallint' | |
| when 3; 'mediumint' | |
| when nil, 4, 11; 'int(11)' # compatibility with MySQL default |
AWS query-instance_method docs
export AWS_ACCESS_KEY_ID=‘XXXX’
export AWS_SECRET_ACCESS_KEY=‘XXXX’# ENV['AWS_ACCESS_KEY_ID']
# ENV['AWS_SECRET_ACCESS_KEY']Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| # from http://stackoverflow.com/questions/4103773/efficient-way-of-having-a-function-only-execute-once-in-a-loop | |
| from functools import wraps | |
| def run_once(f): | |
| """Runs a function (successfully) only once. | |
| The running can be reset by setting the `has_run` attribute to False | |
| """ | |
| @wraps(f) | |
| def wrapper(*args, **kwargs): | |
| if not wrapper.has_run: |
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:
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):