December 2011
6 posts
3 tags
Perl Regex Wild Card & Newlines
In Perl, the generic wildcard character is .. A period inside a regular expression will match any character, except a newline. For example, the regexp /a.b/ will match anything that contains a, another character that’s not a newline, followed by b - “aab,” “a3b,” “a b,” and so forth.
Dec 20th
17 notes
Remember CGRectIntegral for UILabels →
Dec 18th
2 tags
Every Line of Code You Write
you add extra complexity and potential bugs. True masters keep their code simple and short!
Dec 18th
7 notes
2 tags
NPM Local vs Global Install →
Something I always forget! Remember to use that -g flag.
Dec 17th
14 notes
NPM completion.sh when installed with Homebrew
If you installed Node.js with Homebrew instead of from source, you’ll need to add the npm bash completion script to your .bashrc file as follows: source /usr/local/lib/node_modules/npm/lib/utils/completion.sh Different path, same thing. ;)
Dec 17th
5 tags
Converting HTML Hex Colors to UIColor →
Dec 4th
2 notes