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
#!/bin/sh | |
# Written by Mike Ensor (mike@ensor.cc) | |
# Copywrite 2012 | |
# Use as needed, modify, have fun! | |
# This is intended to be used for Maven3 + Mac OSX | |
# | |
# To use: | |
# in your ".bashrc" or ".bash_profile" add the following line: | |
# source ~/<path to script>/colorize-maven.sh |
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
#define CS_PIN 10 | |
#define SI_PIN 11 | |
#define SO_PIN 12 | |
#define SCK_PIN 13 | |
#define FILE_NAME "log.txt" | |
#include <SerialFlash.h> | |
#include <SPI.h> | |
SerialFlashFile file; |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/rcrowley/go-metrics" | |
) | |
func main() { | |
// PrefixedRegistry |
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
// Attempt to minimize boilerplate code | |
func (l *LdApiClient) DoRequest(verb string, resource string, body interface{}, response interface{}, statusCodePredicate func(int) bool) error { | |
start := time.Now() | |
url := fmt.Sprintf("%s/%s", l.BaseUri, resource) | |
pre := verb + " " + url | |
var bodyJson []byte | |
var err error | |
if body != nil { | |
bodyJson, err = json.Marshal(body) |
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
package us.ledicio.pattern;// In this file you can define your own custom patterns | |
import heronarts.lx.LX; | |
import heronarts.lx.LXCategory; | |
import heronarts.lx.color.LXColor; | |
import heronarts.lx.model.LXPoint; | |
import heronarts.lx.parameter.CompoundParameter; | |
import heronarts.lx.parameter.EnumParameter; | |
import us.ledicio.Gradient; |