create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
| /**************** | |
| * This is an example of how to pull data from the WalkScore API from Google Spreadsheets | |
| * Hastily Written by Adam Phillabaum <adam@phillabaum.us> | |
| * | |
| * An example invocation looks like: | |
| * "=WalkScore(AE2,AF2,C2)" | |
| * Where AE2 is latitude, AF2 is longitude, and C2 is the address | |
| * | |
| * Get your WalkScore API key here: http://www.walkscore.com/professional/api-sign-up.php | |
| * Don't worry, it's free and instant... even though it looks like a leadgen form |
Cython has two major benefits:
Cython gains most of it's benefit from statically typing arguments. However, statically typing is not required, in fact, regular python code is valid cython (but don't expect much of a speed up). By incrementally adding more type information, the code can speed up by several factors. This gist just provides a very basic usage of cython.
There are a mess of troubles in sending and receiving files from my macbook to dev server, since I had no permission to excute command scp on dev server. Here is a lightweight, quick, and convenience tools which related with ssh, called lrzsz. lrzsz is a unix communication package providing the XMODEM, YMODEM, ZMODEM file transefer protocol which usually has been already installed in most of servers.
| from math import sqrt | |
| def put_kernels_on_grid (kernel, pad = 1): | |
| '''Visualize conv. filters as an image (mostly for the 1st layer). | |
| Arranges filters into a grid, with some paddings between adjacent filters. | |
| Args: | |
| kernel: tensor of shape [Y, X, NumChannels, NumKernels] | |
| pad: number of black pixels around each filter (between them) |
| def make_python_identifier(string, namespace=None, reserved_words=None, | |
| convert='drop', handle='force'): | |
| """ | |
| Takes an arbitrary string and creates a valid Python identifier. | |
| If the python identifier created is already in the namespace, | |
| or if the identifier is a reserved word in the reserved_words | |
| list, or is a python default reserved word, | |
| adds _1, or if _1 is in the namespace, _2, etc. | |
| Parameters |
$ uname -r