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
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
typedef void (^PaintCodeSourceBlock)(); | |
@implementation PaintCodeDrawableImages | |
+ (UIImage *)drawImageWithSize:(CGSize)size paintCodeSource:(PaintCodeSourceBlock)paintCodeSourceBlock | |
{ | |
// Begin the image context. | |
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0f); | |
// Draw the paint code image. |
/* | |
* uart.c | |
* | |
* Asynchronous UART example tested on ATMega328P (16 MHz) | |
* | |
* Toolchain: avr-gcc (4.3.3) | |
* Editor: Eclipse Kepler (4) | |
* Usage: | |
* Perform all settings in uart.h and enable by calling initUART(void) | |
* Compile: |
package main | |
import ( | |
"fmt" | |
"syscall" | |
) | |
type DiskStatus struct { | |
All uint64 `json:"all"` | |
Used uint64 `json:"used"` |
package main | |
import ( | |
"encoding/base64" | |
"net/http" | |
"strings" | |
) | |
type handler func(w http.ResponseWriter, r *http.Request) |
package main | |
import( | |
"net/url" | |
"net/http" | |
"net/http/httputil" | |
) | |
func main() { | |
vhost1, err := url.Parse("http://127.0.0.1:1980") |
// A small SSH daemon providing bash sessions | |
// | |
// Server: | |
// cd my/new/dir/ | |
// #generate server keypair | |
// ssh-keygen -t rsa | |
// go get -v . | |
// go run sshd.go | |
// | |
// Client: |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
#!/usr/bin/env python | |
import random | |
import struct | |
import sys | |
# Most of the Fat32 class was cribbed from https://gist.github.com/jonte/4577833 | |
def ppNum(num): | |
return "%s (%s)" % (hex(num), num) |