Instantly share code, notes, and snippets.

# ae6up

• Sort options
Created Apr 20, 2013
Go: Working through the diff algorithms from Myers "An O(ND) Difference Algorithm and Its Variations"
View diff.go
 package main import "fmt" /******************************************************************************* * Reference: * An O(ND) Difference Algorithm and Its Variations * Eugene W. Myers *******************************************************************************/
Last active Dec 16, 2015
Exercise with Go. A super simple forth/four function integer RPN calculator.
View simple-forth
 package main import ( "bytes" "fmt" "io" "strconv" "strings" )
Last active Dec 16, 2015
Working though the Knuth-Morris-Pratt algorithm.
View KMP
 package main import "fmt" //naive approach func inStr(s, w string) int { pos, i := 0, 0 for pos+i < len(s) { //fmt.Printf("%x: s[%x+%x] == w[%x] / %c == %c\n", pos, pos, i, i, s[pos+i], w[i]) if s[pos+i] == w[i] {
Created Jan 8, 2012
Simple web server for Nanode v5 that also provides Wake-On-LAN broadcast on network segment in response to a HTTP request. This provides a route-able way to start a server on another network segment.
View WOL.pde
 // Simple web server for Nanode v5 that also provides Wake-On-LAN broadcast on // network segment in response to a HTTP request. This provides a route-able // way to start a server on another network segment. // 2012-01-07 http://opensource.org/licenses/mit-license.php #include #include // ethernet mac address - must be unique on your network static byte mymac[6];
You can’t perform that action at this time.