Jim Cheung

Tuesday, March 03, 2015

found a new podcast: Developer Tea

Wednesday, March 04, 2015

heard few new thing from this video: The inner guts of Bitbucket

Friday, March 06, 2015

exciting with http2's multiplexing


The Go Programming Languag, by the K


export git source without .git folder (like svn export):

git archive master | bzip2 > filename.tar.bz2
git archive --format zip --output /full/path/to/zipfile.zip master

from this post Most common git screwups/questions and solutions, learned:

Monday, March 09, 2015

merge first two commits:

rebase -i --root master

move a directory to a new repository

  1. clone the old repo
  2. run git filter-branch --subdirectory-filter target_dir -- --all
  3. add new origin and push

remove a folder from history

git filter-branch --tree-filter 'rm -rf node_modules' --prune-empty HEAD
git commit -m 'Removing node_modules from git history'
git gc

details see here

to add .gitignore using gitignore.io api:

 for i in netbeans gradle java; do curl -s https://www.gitignore.io/api/$i >> .gitignore; done

Tuesday, March 10, 2015

this week's podcasts:


start reading Beginning Spring, you can skip any spring books which still using xml configurations, while this book is not.


browsing github trending:

Wednesday, March 11, 2015

range in common lisp source:

(defun range (max &key (min 0) (step 1))
    (loop for n from min below max by step
        collect n))

Thursday, March 26, 2015

podcasts of the week:

Saturday, March 28, 2015

learned 2 css tricks, very useful:

from this reddit comment

Blog Archive