- city
- city_prefix
- city_suffix
- country
- postcode
- secondary_address
- state
var MyApp = { | |
context: {} | |
}; | |
MyApp.context.departments = null; | |
MyApp.context.employees = null; | |
var counter = 100; | |
/** | |
* Initialization of associated models |
# Memory snapshot analyzer which parses the /proc file system on *nix | |
# | |
# Example (run in Heroku console): | |
# | |
# ms = MemorySnapshot.new | |
# 1.upto(10000).map { |i| Array.new(i) }; nil | |
# ms.snapshot!; nil | |
# ms.diff 10 | |
# => {"lib/ld-2.11.1.so"=>156, "heap"=>2068, "all"=>2224} | |
# |
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.
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |