(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package main | |
| import ( | |
| "encoding/base64" | |
| "net/http" | |
| "strings" | |
| ) | |
| type handler func(w http.ResponseWriter, r *http.Request) |
| package nettimeout | |
| import ( | |
| "net" | |
| "time" | |
| ) | |
| // Listener wraps a net.Listener, and gives a place to store the timeout | |
| // parameters. On Accept, it will wrap the net.Conn with our own Conn for us. | |
| type Listener struct { |
| doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $* | |
| doskey ls=ls $1 --color | |
| doskey ll=ls -la --color | |
| doskey sbl = sublime $* | |
| doskey sshs = ssh [email protected] | |
| doskey oocd = openocd-x64-0.6.1 -f .\stm32f4discovery.cfg | |
| doskey oocd7 = openocd-x64-0.7.0 -f .\stm32f4discovery.cfg | |
| doskey sshkey = type C:\Users\dcrystalj\.ssh\id_rsa.pub | clip & echo "ssh key in clipboard" | |
| :: Git |
| #!/bin/bash | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: $0 file partSizeInMb"; | |
| exit 0; | |
| fi | |
| file=$1 | |
| if [ ! -f "$file" ]; then |
| using System; | |
| using System.Collections; | |
| using UnityEngine; | |
| public class Testing : MonoBehaviour | |
| { | |
| void Start() | |
| { | |
| // In C#, this is an 'Anonymous Type' | |
| // A new System.Type is generated for it at compile type |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| using System; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| //Unity 4.1.5 | |
| public class UnityTextures : EditorWindow | |
| { |
| package main | |
| import ( | |
| "log" | |
| "myserver" | |
| "net/http" | |
| ) | |
| const addr = "localhost:12345" |