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.
Remember CGRectIntegral for UILabels →
2 tags
Every Line of Code You Write
you add extra complexity and potential bugs. True masters keep their code simple and short!
2 tags
NPM Local vs Global Install →
Something I always forget! Remember to use that -g flag.
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. ;)
5 tags
Converting HTML Hex Colors to UIColor →