This file contains hidden or 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/env ruby | |
# metatest | |
# | |
# Created by Paolo Bosetti on 2011-01-20. | |
# Copyright (c) 2011 University of Trento. All rights reserved. | |
# | |
def header(string) | |
border = "=" * string.length | |
puts |
This file contains hidden or 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/env ruby | |
# untitled | |
# | |
# Created by Paolo Bosetti on 2011-01-19. | |
# Copyright (c) 2011 University of Trento. All rights reserved. | |
# | |
def header(string) | |
border = "=" * string.length |
This file contains hidden or 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/env ruby | |
# test | |
# | |
# Created by Paolo Bosetti on 2011-01-04. | |
# Copyright (c) 2011 University of Trento. All rights reserved. | |
# | |
require "yaml" | |
require "socket" | |
require "timeout" | |
require "fileutils" |
This file contains hidden or 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/env bash | |
#echo "Adding universe repository" | |
#if ! apt-add-repository "deb http://archive.ubuntu.com/ubuntu lucid universe"; #then | |
# echo "Could not add source list" | |
# exit $? | |
#fi | |
echo "Updating package list" | |
if ! apt-get update; then | |
echo "Could not update package list" |
This file contains hidden or 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/env ruby | |
# transimage.rb | |
# | |
# Created by Paolo Bosetti on 2010-12-03. | |
# Copyright (c) 2010 University of Trento. All rights reserved. | |
# | |
require "rubygems" | |
require "RMagick" |
This file contains hidden or 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
/* | |
fft extension to Array class. | |
(C) Paolo Bosetti 2009 - University of Trento | |
Credits to fft.c | |
(c) Douglas L. Jones | |
University of Illinois at Urbana-Champaign | |
January 19, 1992 | |
*/ | |
#include "ruby.h" | |
#include <math.h> |
This file contains hidden or 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/env ruby | |
# entities.rb | |
# | |
# Created by Paolo Bosetti on 2009-09-11. | |
# Copyright (c) 2009 University of Trento. All rights reserved. | |
# | |
$KCODE = 'U' | |
OUT_DIR = "Converted" | |
if ARGV.size == 0 |
This file contains hidden or 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/env ruby | |
# Adds a method to Array to compute the 1-D radix-2 fast Fourier Transform | |
# | |
# Created by Paolo Bosetti on 2009-09-07. | |
# Copyright (c) 2009 University of Trento. All rights reserved. | |
# | |
require "mathn" | |
require "complex" | |
include Math |
This file contains hidden or 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 <MsTimer2.h> | |
#include <EEPROM.h> | |
// Serial data rate | |
#define BAUD 115200 | |
// Version number | |
#define CODEID "Sampler.1" | |
// Constants |
This file contains hidden or 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
/* | |
Functions to write and restore value of any type in Arduino's EEPROM | |
*/ | |
#include <EEPROM.h> | |
// Functions | |
template <class T> int EEPROM_write(int ee, const T& value) | |
{ | |
byte const *p = reinterpret_cast<byte const *>(&value); | |
int i; |