Skip to content

Instantly share code, notes, and snippets.

View hlee's full-sized avatar

Ken Lu hlee

View GitHub Profile
"meta": {
"errorCode": 0,
"errorMsg": "",
"max_results": 10,
"statusCode": 200,
"statusMsg": "OK"
},
"response": {
@hlee
hlee / gist:6424086
Created September 3, 2013 13:41 — forked from necolas/gist:2215692
# Workflow from https://github.com/necolas/dotfiles
# Add the new submodule
git submodule add git://example.com/remote/path/to/repo.git vim/bundle/one-submodule
# Initialize the submodule
git submodule init
# Clone the submodule
git submodule update
# Stage the changes
git add vim/bundle/one-submodule

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
<select id="CategoryList" onchange="CategoryList_OnChange()">
<option value="" selected="selected"></option>
<option value="1" selected="selected">Food</option>
<option value="2" selected="selected">Toys</option>
<option value="3" selected="selected">Books</option>
</select>
<select id="ProductList"></select>
<script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
@hlee
hlee / git_report
Created April 19, 2013 23:18
git report
#! /usr/bin/perl -w
use strict;
my $since;
if ($ARGV[0]) {
$since = $ARGV[0];
} else {
$since = "1 week ago";
}

Given an integer, and a range of integers (both positive and negative) as input.

We need to calculate the possible combinations of the integers from the range that add up to the given integer.

For example:

Integer: 5

Range: -1, 0, 1, 2, 3, 4