This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I ran into a weird unknown method invocation with cp5magic (perhaps because I have to use Processing 1.5.1 because of bugs in 2.0b). | |
// That combined with having classes with setParamName1(numeric) style setters, I wrote this. Enjoy. | |
/* | |
Usage: | |
public class MyParameterClass { | |
double myParameter = 100d; | |
@Range(max=200) | |
public void setMyParameter(double v) { myParameter = v; } | |
public double getMyParameter() { return myParameter; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Skelos Plot</title> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.chord path { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait IsNotFuture[F] { | |
type T | |
def apply(f: F): T | |
} | |
object IsNotFuture { | |
def apply[F](implicit isf: IsNotFuture[F]) = isf | |
implicit def mkFuture[A] = new IsNotFuture[Future[A]] { | |
type T = Int // Doesn't matter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Instructions | |
; - Install PlatformIO IDE Package within Atom and then choose PlatformIO / Install Shell Commands menu item | |
; - Alternatively install PlatformIO command line only (when you install for Atom it will want you to then remove the cli version) | |
; - Upgrade to development version of atmelsam platform using the following commands | |
; pio platform uninstall atmelsam | |
; pio platform install https://github.com/platformio/platform-atmelsam.git | |
; - Make a directory myproject | |
; - Copy this fileinto it as platformio.ini | |
; - Copy ttn-otaa.ino to myproject/src/main.cpp | |
; - Make sure that arm-none-eabi-gdb is on your path. Might have to run: |