git clone [email protected]: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
| // | |
| // libuuid sample program | |
| // | |
| // library install for debian | |
| // $ sudo apt-get install uuid-dev | |
| // | |
| // compile | |
| // $ gcc uuid_test.c -luuid -o uuid_test | |
| // | |
| #include <stdio.h> |
| import java.util.List; | |
| import java.util.Set; | |
| import javax.servlet.http.HttpServletRequest; | |
| import org.codehaus.jackson.map.Module; | |
| import org.junit.After; | |
| import org.junit.Before; | |
| import com.google.common.collect.Lists; |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
git clone [email protected]: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
| wget -c http://ufpr.dl.sourceforge.net/project/pysclint/pyhdf/0.8.3/pyhdf-0.8.3.tar.gz | |
| tar zxvf pyhdf-0.8.3.tar.gz | |
| cd pyhdf-0.8.3 | |
| sudo apt-get install libhdf4-dev | |
| sudo apt-get install python2.6-dev | |
| cd pyhdf | |
| sudo apt-get install swig | |
| swig -python hdfext.i | |
| cd .. | |
| export INCLUDE_DIRS=/usr/include/hdf |
| // WARNING: Requires C99 compatible compiler | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include "heap.h" | |
| #define CMP(a, b) ((a) >= (b)) | |
| static const unsigned int base_size = 4; |
| @@ -28,7 +28,7 @@ | |
| ### Set diff-cmd to the absolute path of your 'diff' program. | |
| ### This will override the compile-time default, which is to use | |
| ### Subversion's internal diff implementation. | |
| -# diff-cmd = diff_program (diff, gdiff, etc.) | |
| +diff-cmd = colordiff | |
| ### Set diff3-cmd to the absolute path of your 'diff3' program. | |
| ### This will override the compile-time default, which is to use | |
| ### Subversion's internal diff3 implementation. |
| So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear! | |
| Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy. | |
| * Off the top of my head * | |
| 1. Fork their repo on Github | |
| 2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it | |
| git remote add my-fork [email protected] |
| # | |
| # cairo install script for MinGW. | |
| # | |
| # - zlib 1.2.5 | |
| # - libpng 1.4.3 | |
| # - pixman 0.18.4 | |
| # - cairo 1.10.0 | |
| # | |