Use brew.
$ brew install node
Continue reading →
Create a .gitignore
file in your home directory. For example:
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.classpath
.project
.settings/
# Emacs
*.*#
*~
Then run this command to set it as the ignore file to use globally.
$ git config --global core.excludesfile ~/.gitignore
Continue reading →
$/usr/bin/ruby -e \
"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
When complete run:
$ brew doctor
The other day I overheard a conversation among a small group picking names for a team.
The name of Dread Pirate Roberts
was proposed.
Someone asked who is that and another responded with, "he was the guy who created the Silk Road
".
As this happened I was thinking wasn't that the name of a character in the movie The Princess Bride
.
A few thoughts having just tweaked a script to run under Python 3.
The newer print() function syntax works in both 2 and 3. You most likely have print "" statements in your Python 2 script. Update to the new syntax and you'll be able to work in both 2 and 3.
The write statement in the following block throws and error in 3 unless you open the file in binary mode. The following block is the updated one from my script and it runs in 2 and 3.
with open (filename, 'wb') as handle:
for block in response.iter_content(1024):
handle.write(block)
Continue reading →