Skip to content

Instantly share code, notes, and snippets.

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

# Dynamically load virtualenvwrapper functions to reduce shell startup
# time.
#
# Copyright 2012 Aron Griffis <aron@arongriffis.com>
# Released under the GNU GPL v3
#######################################################################
# Python virtualenvwrapper loads really slowly, so load it on demand.
if [[ $(type -w workon) != "workon: function" ]]; then
virtualenv_funcs=( workon deactivate mkvirtualenv )
@randallm
randallm / gist:5087003
Last active December 14, 2015 12:29 — forked from DeBomb123/gist:5086975
for sam
def check_divisible_by_three(n):
if n % 3 == 0:
return True
else:
return False
def cube(n):
return n ** 3