Skip to content

Instantly share code, notes, and snippets.

ae6up

Block or report user

Report or block ae6up

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ae6up
ae6up / WOL.pde
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 <matthew@densons.org> http://opensource.org/licenses/mit-license.php
#include <EtherCard.h>
#include <NanodeUNIO.h>
// ethernet mac address - must be unique on your network
static byte mymac[6];
@ae6up
ae6up / KMP
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] {
@ae6up
ae6up / simple-forth
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"
)
@ae6up
ae6up / diff.go
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
*******************************************************************************/
You can’t perform that action at this time.