Skip to content

Instantly share code, notes, and snippets.

View edrex's full-sized avatar

Eric Drechsel edrex

  • Portland, OR
View GitHub Profile
@edrex
edrex / -
Created August 5, 2016 21:39
Go Oracle
/Users/eric/go/src/github.com/sixgill/service/switch/cmd/device/service.go:380:25: cannot use float32(math.Mod(float64(gpsLocation.Heading) + (r.NormFloat64() * float64(stdDeltas.Heading)) + headingDelta, 360.)) (value of type float32) as float64 value in assignment
/Users/eric/go/src/github.com/sixgill/service/switch/cmd/device/service.go:382:4: invalid operation: mismatched types float64 and float32
/Users/eric/go/src/github.com/sixgill/service/switch/cmd/device/service.go:384:28: invalid operation: mismatched types float32 and float64
oracle: couldn't load packages due to errors: github.com/sixgill/service/switch/cmd/device
@edrex
edrex / -
Created August 3, 2016 00:18
# github.com/sixgill/service/switch/cmd/device
cmd/device/service.go:202: cannot use gwmux (type *"github.com/sixgill/service/vendor/github.com/gengo/grpc-gateway/runtime".ServeMux) as type *"github.com/sixgill/service/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime".ServeMux in argument to protobuf.RegisterHealthServiceHandlerFromEndpoint
cmd/device/service.go:210: cannot use gwmux (type *"github.com/sixgill/service/vendor/github.com/gengo/grpc-gateway/runtime".ServeMux) as type *"github.com/sixgill/service/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime".ServeMux in argument to protobuf.RegisterSGMSServiceHandlerFromEndpoint
cmd/device/service.go:218: cannot use gwmux (type *"github.com/sixgill/service/vendor/github.com/gengo/grpc-gateway/runtime".ServeMux) as type *"github.com/sixgill/service/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime".ServeMux in argument to protobuf.RegisterInitialContactServiceHandlerFromEndpoint
# github.com/sixgill/service/switch/cmd/master
cmd/master/service.go
Getting links from: http://localhost:4000/
├───OK─── http://gmpg.org/xfn/11
├───OK─── http://localhost:4000/public/css/poole.css
├───OK─── http://localhost:4000/public/css/syntax.css
├───OK─── http://localhost:4000/public/css/hyde.css
├───OK─── http://localhost:4000/public/css/pdxruby.css
├───OK─── https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700%7CAbril+Fatface
├─BROKEN─ http://localhost:4000/public/apple-touch-icon-144-precomposed.png (HTTP_404)
├─BROKEN─ http://localhost:4000/public/favicon.ico (HTTP_404)
├───OK─── http://localhost:4000/atom.xml
package main
import "os"
import "log"
import "github.com/cznic/kv"
import "bytes"
import "strconv"
func usage() {
log.Fatalf(`Usage: exifgps-fixup FILE`)
@edrex
edrex / funcs.el
Created April 18, 2016 17:13
my/journal spacemacs layer (trimmed down)
(setq journal-directory "~/Documents/Journal/")
(defun my/journal-path (time name)
(concat (file-name-as-directory journal-directory) (format-time-string "%Y-%m-%d" time) "-" name ".org")
)
(defun my/journal (title)
"Open the journal file for today"
(interactive)
(find-file (my/journal-path nil title)))
localhost
{
log proxy.log
proxy /echo localhost:8080 {
websocket
}
}
localhost:2020 {
log proxy.log
proxy /echo localhost:2021 {
websocket
}
}
localhost:2021 {
log websocket.log
@edrex
edrex / index.html
Last active March 14, 2016 03:52
Loading Prosemirror
<!doctype html>
<meta charset="utf-8">
<script src="https://jspm.io/system@0.19.21.js"></script>
<script>
System.config({
transpiler: 'babel'
});
SystemJS.import('./index.js');
</script>
alexandria.pdxhub.org {
root PDXHubWiki
fastcgi /ikiwiki.cgi /run/fcgiwrap-eric.sock
browse /share
redir /irc http://alexandria.pdxhub.org:64080{uri} 301
}
localhost
log access.log
websocket /echo cat