Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
fmpwizard / moteino-gateway.ino
Created January 10, 2016 19:55
Moteino gateway and one node, the gateway turns one LED on when it gets the letter 'Z'
// Sample RFM69 receiver/gateway sketch, with ACK and optional encryption, and Automatic Transmission Control
// Passes through any wireless received messages to the serial port & responds to ACKs
// It also looks for an onboard FLASH chip, if present
// RFM69 library and sample code by Felix Rusu - http://LowPowerLab.com/contact
// Copyright Felix Rusu (2015)
#include <RFM69.h> //get it here: https://www.github.com/lowpowerlab/rfm69
#include <RFM69_ATC.h>//get it here: https://www.github.com/lowpowerlab/rfm69
#include <SPI.h> //comes with Arduino IDE (www.arduino.cc)
[info] 4 examples, 0 failure, 0 error
[info] CustomSerializerExamples
[info] + Interval serialization example
[info] ! Pattern serialization example
[error] MappingException: : unknown error (Extraction.scala:46)
[error] net.liftweb.json.Extraction$.extract(Extraction.scala:46)
[error] net.liftweb.json.JsonAST$JValue.extract(JsonAST.scala:706)
[error] net.liftweb.json.Serialization$.read(Serialization.scala:62)
[error] net.liftweb.json.CustomSerializerExamples$$anonfun$35$$anonfun$apply$94.apply(SerializationExamples.scala:334)
[error] net.liftweb.json.CustomSerializerExamples$$anonfun$35$$anonfun$apply$94.apply(SerializationExamples.scala:334)

Keybase proof

I hereby claim:

  • I am fmpwizard on github.
  • I am fmpwizard (https://keybase.io/fmpwizard) on keybase.
  • I have a public key whose fingerprint is 8B2D 5221 E5BF E79A DD36 153B 4B47 C594 B0B6 124D

To claim this, I am signing this object:

## Fresh git clone && godep restore
$ time go build -x -tags=fetcherSched -o owlcrawler-scheduler owlcrawler_scheduler.go
WORK=/tmp/go-build789249122
mkdir -p $WORK/github.com/fmpwizard/owlcrawler/couchdb/_obj/
mkdir -p $WORK/github.com/fmpwizard/owlcrawler/
cd /home/diego/work/golang/src/github.com/fmpwizard/owlcrawler/couchdb
/usr/local/go/pkg/tool/linux_amd64/6g -o $WORK/github.com/fmpwizard/owlcrawler/couchdb.a -trimpath $WORK -p github.com/fmpwizard/owlcrawler/couchdb -complete -D _/home/diego/work/golang/src/github.com/fmpwizard/owlcrawler/couchdb -I $WORK -I /home/diego/work/golang/pkg/linux_amd64 -pack ./couchdb.go
mkdir -p $WORK/github.com/gogo/protobuf/proto/_obj/
mkdir -p $WORK/github.com/gogo/protobuf/
[diego@Toshiba trade-recommender]$ go run main.go
Recommending cusip-50214A104 with score 5
Recommending cusip-112823109 with score 3.9143536352233377
Recommending cusip-87901BAA0 with score 3.9143536352233377
Recommending cusip-88160T107 with score 3.9143536352233377
Recommending cusip-84756N109 with score 3.9143536352233377
Recommending cusip-527298AY9 with score 3.9143536352233377
Recommending cusip-69360J719 with score 3.9143536352233377
Recommending cusip-165167CN5 with score 3.9143536352233377
Recommending cusip-257454108 with score 3.9143536352233377
@fmpwizard
fmpwizard / owlcrawler-sample.json
Created March 1, 2015 07:05
Sample json stored in CouchDB. Generated by OwlCrawler https://github.com/fmpwizard/owlcrawler
{
"_id": "aHR0cDovL2RyaGF5bGV5YmF1bWFuLmNvbS9zZXJlbmRpcGl0eV9hbmRfdGhlX3NlYXJjaF9mb3JfdHJ1ZV9zZWxmLmh0bWw=",
"_rev": "27-728ef0b7a325e8b376f6dbc374c82c38",
"url": "http://drhayleybauman.com/serendipity_and_the_search_for_true_self.html",
"html": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <meta name=\"description\" content=\"\">\n <meta name=\"author\" content=\"\">\n <link rel=\"icon\" href=\"../../favicon.ico\">\n\n <title>Psychologist in Ashevillem NC - Serendipity and the Search for True Self - Dr Hayley Bauman</title>\n\n <link rel=\"stylesheet\" href=\"/bootstrap/css/bootstrap.min.css\">\n <link rel=\"stylesheet\" href=\"/bootstrap/css/bootstrap-theme.min.css\">\n <link rel=\"stylesheet\" href=\"/site.css\">\n\n <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queri
@fmpwizard
fmpwizard / proxydb.lua
Created January 31, 2015 03:33
mysql proxy lua file database key value store with replication
--[[ $%BEGINLICENSE%$
Copyright (C) 2009 MySQL AB, 2009 Sun Microsystems, Inc
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
diff --git a/src/test/scala/webapptest/snippet/UploadProgressDemo.scala b/src/test/scala/webapptest/snippet/UploadProgressDemo.scala
index 822718a..8e81d0b 100644
--- a/src/test/scala/webapptest/snippet/UploadProgressDemo.scala
+++ b/src/test/scala/webapptest/snippet/UploadProgressDemo.scala
@@ -40,17 +40,18 @@ object UploadProgressDemo extends DispatchSnippet {
case "script" => UploadProgress.head _
}
- def upload(xhtml: NodeSeq): NodeSeq = {
+ def upload(html: NodeSeq): NodeSeq = {
+++ b/src/main/scala/net/liftmodules/widgets/tree/TreeView.scala
@@ -22,8 +22,7 @@ import _root_.scala.xml._
import _root_.net.liftweb.util.Helpers._
import _root_.net.liftweb.common.{Box, Full, Empty}
import _root_.net.liftweb.http.S._
-import _root_.net.liftweb.http.LiftRules
-import _root_.net.liftweb.http.{LiftResponse, JsonResponse}
+import net.liftweb.http.{S, LiftRules, LiftResponse, JsonResponse}
import _root_.net.liftweb.http.js._
import _root_.net.liftweb.http.js.jquery._
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
086a5930db28 tutum/rabbitmq:latest /run.sh 35 seconds ago Up 33 seconds 0.0.0.0:2703->5672/tcp, 0.0.0.0:2704->15672/tcp acmweb_rabbitmq_1
a304520ea1ed dockerfile/mongodb:latest /usr/bin/mongod --no 45 seconds ago Up 44 seconds 0.0.0.0:2700->27017/tcp, 0.0.0.0:2701->28017/tcp acmweb_mongo_1
7c4d3b994cf0 dockerfile/mongodb:latest echo mongod 3 minutes ago Exited (0) 3 minutes ago naughty_elion
fb767144700b dockerfile/mongodb:latest echo mongod 18 minutes ago Exited (0) 18 minutes ago high_ardinghelli
a1a7d17ba447 dockerfile/mongodb:latest