git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
As configured in my dotfiles.
start new:
tmux
start new with session name:
# ------------------------------------------------------------------------------------------------------------ # | |
# --------------------------------------------- Signal Library ----------------------------------------------- # | |
# ------------------------------------------------------------------------------------------------------------ # | |
import weakref | |
class Signal(object): | |
def __init__(self, *types): | |
self._call_types = types | |
self._connections = set() |
def read_nonblocking(path, bufferSize=100, timeout=.100): | |
import time | |
""" | |
implementation of a non-blocking read | |
works with a named pipe or file | |
errno 11 occurs if pipe is still written too, wait until some data | |
is available | |
""" | |
grace = True |
/** | |
* @file Instrumentor.hpp | |
* | |
* @brief Basic Instrumentation Profiler for C++ | Macro-fied | |
* | |
* Upon execution of profile macro embedded source code, all the profiling data | |
* is dumped to a JSON file compatible with Chrome Tracing tool. The JSON file can | |
* then be loaded to chrome tracing (chrome://tracing) to visualise the data. | |
* | |
* @author TheCherno (primary author) |