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
/* | |
* TurntableControl.ino | |
* Libraries required: | |
* - Pololu DRV8835 Dual Motor Driver Carrier - https://github.com/raster/drv8835-motor-driver | |
* - ServoTimer2 Library - http://forum.arduino.cc/index.php?action=dlattach;topic=157400.0;attach=39747 | |
* | |
* pete@2xlnetworks.com | |
* | |
*/ |
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
/* | |
* Drawbot.pde | |
* | |
* See also: http://rasterweb.net/raster/2011/01/12/friday-night-drawbot/ | |
* See also: https://gist.github.com/778622 | |
* | |
*/ | |
int servoPinL = 9; | |
int servoPinR = 10; |
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/perl | |
# | |
# See also: http://rasterweb.net/raster/2011/01/17/perl-arduino-shiftbrite/ | |
# | |
use Device::SerialPort; | |
my $port = Device::SerialPort->new("/dev/tty.usbmodem1d21"); # ymmv here... | |
$port->databits(8); | |
$port->baudrate(9600); |
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
/* | |
* ShiftBrite.pde | |
* | |
* See also: http://rasterweb.net/raster/2011/01/17/perl-arduino-shiftbrite/ | |
* See also: http://code.google.com/p/shiftbritehughesyarduino/ | |
* | |
*/ | |
#include "HughesyShiftBrite.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
/* | |
* LightOrgan.pde - Arduino | |
* | |
* See also: http://rasterweb.net/raster/2011/01/19/shiftbrite-light-organ/ | |
* | |
*/ | |
#include "HughesyShiftBrite.h" | |
HughesyShiftBrite sb; |
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/perl -w | |
use ExtUtils::Installed; | |
my $instmod = ExtUtils::Installed->new(); | |
foreach my $module ($instmod->modules()) { | |
my $version = $instmod->version($module) || "???"; | |
print "$module -- $version\n"; |
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/perl | |
use strict; | |
use warnings; | |
use Net::Ping; | |
my $host = shift || 'www.google.com'; | |
my $wait = shift || 5; | |
my @states = map { "Internet is $_ " } qw/down up/; |
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
Login as someuser (type password at prompt): | |
mysql -u someuser -p | |
(To not be promted for the password, you would use 'mysql -u someuser -ppassword') | |
Load a database from a dump file: | |
mysql -u someuser -p dbname < somedatabase.mysql |
OlderNewer