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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'json' | |
require 'csv' | |
infile = ARGV[0] | |
json = File.read(infile) | |
parsed = JSON.parse(json.encode("UTF-8")) | |
outfile = ARGV[1] |
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
double dim = 600; | |
double center = dim/2; | |
double offsetX = 0; | |
double offsetY = 0; | |
double range = 10; | |
double scale = dim / range; | |
double plotWidth = 0.05; | |
double plotIncrement = 0.1; | |
double sinhFactor = 1.25; // 1.25 |
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
#include <Adafruit_NeoPixel.h> | |
#define PIN 1 | |
//single pixel, v2 Flora RGB NeoPixel, so GRB bitsream at 800 khz | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, PIN, NEO_GRB + NEO_KHZ800); | |
// assuming we have adafruit gemma v2 | |
// http://adafru.it/1222 | |
// assuming we have four fiora RGB neopixels |
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
///////////////////////////////////////////////////////////////// | |
// Created by Kevin Elsenberger // | |
// June 2, 2013 // | |
// elsenberger.k at gmail.com // | |
// from http://playground.arduino.cc/Code/EEPROMReadWriteLong // | |
///////////////////////////////////////////////////////////////// | |
//Needed to access the eeprom read write functions | |
#include <EEPROM.h> |
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
/* | |
Klingon-D7 | |
1) Light up impulse lights (pin 11) | |
2) Detect button press (pin 2) | |
3) Fire torpedo (pin 9) | |
*/ | |
int PIN_TORPEDO_BUTTON = 2; | |
int PIN_TORPEDO = 9; | |
int PIN_IMPULSE = 11; |
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
/* | |
This program demonstrates the dGPS library from Dexter Industries for Arduino | |
For use with the Dexter Industries GPS Shield. The dGPS can be found here: | |
- http://dexterindustries.com/Arduino-GPS_Shield.html | |
This code was originally based on the work of others. You can see the original work here: | |
- SoftwareSerial Library: http://www.arduino.cc/en/Reference/SoftwareSerial | |
- GPS Tutorial: http://www.arduino.cc/playground/Tutorials/GPS | |
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 ledlogic.com.utility; | |
import java.util.Date; | |
import org.apache.log4j.Logger; | |
import org.junit.Test; | |
public class MsTest { | |
private static final Logger LOG = Logger.getLogger(MsTest.class); | |
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
/** | |
* Modifies youtube anchor urls | |
* Uses purl plugin instead of queryparser plugin. | |
* Uses require | |
* If too small, punts and goes to original url (use target to pop). | |
* | |
* @see http://www.joshuawinn.com/opening-youtube-links-dynamically-in-a-twitter-bootstrap-modal-window/ | |
*/ | |
define(['require', |
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
#include "SoftwareSerial.h" | |
#include "dGPS.h" | |
#include "SPI.h" | |
#include "SD.h" | |
#include "stdlib.h" | |
// SD card | |
const int CS_pin = 10; | |
dGPS dgps = dGPS(); // Construct dGPS class |
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
require 'csv' | |
require 'descriptive_statistics' | |
#data array to store values | |
data = [] | |
# load data | |
CSV.foreach('20150124.csv') do |row| | |
data << row[0] | |
end |
NewerOlder