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 ) |
def check_divisible_by_three(n): | |
if n % 3 == 0: | |
return True | |
else: | |
return False | |
def cube(n): | |
return n ** 3 | |