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
package main | |
// using asymmetric crypto/RSA keys | |
import ( | |
"crypto/rsa" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
# Move only protoc* to /usr/bin/ | |
sudo mv protoc3/bin/protoc /usr/bin/protoc |
''' | |
Simply display the contents of the webcam with optional mirroring using OpenCV | |
via the new Pythonic cv2 interface. Press <esc> to quit. | |
''' | |
import cv2 | |
def show_webcam(mirror=False): | |
cam = cv2.VideoCapture(0) | |
while True: |
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
function sumPrimes(num) { | |
return Array.apply(0, Array(num + 1)) | |
.map(function(x, y){ | |
return y | |
}).filter(function (i){ | |
return (i > 1) && Array | |
.apply(0, Array(1 + ~~Math.sqrt(i))) | |
.every(function(x, y){ | |
return (y < 2) || (i % y !== 0) | |
}); |
package main | |
import ( | |
"bytes" | |
"flag" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/jpeg" | |
"log" |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
"golang.org/x/net/context" | |
"github.com/husobee/backdrop" |
package main | |
import ( | |
"fmt" | |
"github.com/codegangsta/negroni" | |
"github.com/gorilla/mux" | |
"log" | |
"net/http" | |
) |
import ( | |
"fmt" | |
"html/template" | |
"net/http" | |
"github.com/oxtoacart/bpool" | |
) | |
var bufpool *bpool.BufferPool |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"html/template" | |
"github.com/gorilla/sessions" |