Skip to content

Instantly share code, notes, and snippets.

View ntbrock's full-sized avatar

Taylor Brockman ntbrock

  • Brain Power Software
  • Charleston, SC
View GitHub Profile
@ntbrock
ntbrock / spring-motion.iwp.json
Created March 15, 2019 20:37
IWP6 Sample of New JSON
{
"author": {
"email": "",
"name": "",
"organization": "",
"username": "winters@ncssm.edu"
},
"objects": [
{
"start": 0,
@ntbrock
ntbrock / 2019Mar08 IWP Call Log.md
Created March 8, 2019 22:24
2019Mar08 IWP Call Log

2019Mar08 IWP Call Log

Albert L> Designer prototype, refining Dragula, added inputs, and a save button, serialization test. Compiling information. N> The page isnt' sepcific to certain objects, need the flipping of the

Dr. Bennett L> Tested out new animations, send suggestions for Navigation on the new site, new user orientation recommendations. Lots of NaN errors in animation libraries during manual testing, others that wouldn't play when clicking play button, goes to last frame.

Exciting: Hosting a state physics teachers conference at ncssm in November. 3rd weekend of Month. Whatever is ready to roll out and show people.

@ntbrock
ntbrock / ObjectIdFormatJsonMacro.scala
Created October 17, 2018 20:11
Play Framework 2.6 Mongo Scala Driver Official Json Format Macro for ObjectId
import org.mongodb.scala.bson.ObjectId
import play.api.libs.json._
import scala.util.Try
object ObjectIdFormatJsonMacro extends Format[ObjectId] {
def writes(objectId: ObjectId): JsValue = JsString(objectId.toString)
def reads(json: JsValue): JsResult[ObjectId] = json match {
case JsString(x) => {
val maybeOID: Try[ObjectId] = Try{new ObjectId(x)}
@ntbrock
ntbrock / Normalized Pseudo Random with Duplicates.csv
Created February 11, 2018 12:22
2018Feb Normalized Pseudo Random with Duplicates.csv
We can't make this file beautiful and searchable because it's too large.
normal_pseudo_random_duplicates, great for test cases and data noise
-0.764574114
0.408083376
-0.24238223
-0.86169594
-0.6173314
0.898663911
-1.308830494
1.16620806
@ntbrock
ntbrock / 2018Jan30 Kplex and Apple OSX
Created January 31, 2018 03:18
2018Jan30 Kplex and Apple OSX
2018Jan30 Kplex and MacOS
I'm writing to share a great kplex experience from tonight!
My raspberry pi zero w with 2ndary USB wifi adapter using custom compiled hostapd wasn't coming online as expected (shocker). The marine box I had cut for it was tool small to accept a mini HDMI cable. Plus, my fancy OLED rc.local boot status wasn't indicating anything out of the norm, so I decided debugging was best done back on the Vagabond bench and the toys got put away.
That being said, the goal of the evening was set to demonstrate the GX2200 Standard Horizon w/ GPS and AIS receivers transmitting information visible on the owner's iPhone running iNavX at the helm.
In response to my failure, I cloned my ntbrock/kplex fork on OSX high sierra 10.13, make'd, and had a linked kplex binary within 45 seconds.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sweet OpenWrt Router: https://wiki.openwrt.org/toh/wd/n750?s[]=wd&s[]=n750
WD N750 Dual Band - $50 Amazon
The Cisco SPA504G's are great, WBPN's work well @ Vagabond. 192.168.1.254 is the default login, mine are Carbonated!!!
The PolyComs boot very slowly.
The Polycom phones transmit special default authentication information with the firmware version I am using.
The password is always sent as blank, secret tip.
import scala.util.parsing.combinator._
class HeaderPsvRegexParser extends HeaderCharacterRegexParser("|") {}
class HeaderCsvRegexParser extends HeaderCharacterRegexParser(",") {}
class HeaderCharacterRegexParser(delimiterCharacter:String) extends RegexParsers
{
// 2012-Jul-20 - The parser was removing splaces.
// 2015-Jul-07 - This override is required so that internal spaces remain.
override protected val whiteSpace = """[\t]""".r
import scala.util.parsing.combinator._
class HeaderPsvRegexParser extends HeaderCharacterRegexParser("|") {}
class HeaderCsvRegexParser extends HeaderCharacterRegexParser(",") {}
class HeaderCharacterRegexParser(delimiterCharacter:String) extends RegexParsers
{
// 2012-Jul-20 - The parser was removing splaces.
// 2015-Jul-07 - This override is required so that internal spaces remain.
override protected val whiteSpace = """[\t]""".r
@ntbrock
ntbrock / sketch_MemoryAutoReset.ino
Last active August 29, 2015 14:23
Arduino UNO Sketch - Memory Auto Reset low limit SRM malloc debugging
/**
* Say hello to Sainsmart UNO China clone. Cheap on Ebay, free USB A-B charger cord.
* 30 of them arrived in a box this week!
*
*
* Sketch also works well as a memory leak reset detector example, resets on < 250 free.
*
* @github ntbrock
* @gist: Arduino UNO Sketch - Memory Auto Reset low limit SRM malloc debugging
* @repo: https://github.com/ntbrock/bobino