-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
# | |
# Copyright 2013 by Vinay Sajip. | |
# Licensed to the Python Software Foundation under a contributor agreement. | |
# | |
''' | |
Usage: pyzzer.py [options] DIRS | |
Convert Python source directories to runnable zip files. | |
Options: |
from UserDict import IterableUserDict | |
import collections | |
__author__ = 'github.com/hangtwenty' | |
def tupperware(mapping): | |
""" Convert mappings to 'tupperwares' recursively. |
Notes from Coursera course 'Functional Programming Principles in Scala": | |
https://class.coursera.org/progfun-004 | |
✔ Week 1: Functions & Evaluations @done (14-05-01 17:20) | |
✔ Lecture 1.1 - Programming Paradigms (14:32) @done (14-04-27 17:54) | |
3 paradigms: imperative, functional, logic | |
OO: orthogonal | |
imperative: |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
""" | |
Adapted from code by Huy Nguyen: http://www.huyng.com/posts/python-performance-analysis/ | |
Roddie Reventar, 2014 | |
Displays elapsed time. | |
Fast times look like: | |
>>> 1.968050e-02 seconds | |
Slow times (large data) look like: | |
>>> 0h 10m 32s |