add text to start and end of line:
- open Find & Replace: opt+cmd+F keys
- enter
^(.+)$in the search/find - in the replace field, add text before and after
$1
| // these constants describe the pins. They won't change: | |
| const int xpin = A3; // x-axis of the accelerometer | |
| const int ypin = A2; // y-axis | |
| const int zpin = A1; // z-axis (only on 3-axis models) | |
| const int x_max = 512; | |
| int ledPin = 8; //pin for led | |
| //setup |
| /** | |
| * a simple sketch to randomly change colors of RGB LED | |
| * and write out Serial output. | |
| */ | |
| int redPin = 11; | |
| int bluePin = 10; | |
| int greenPin = 9; | |
| //setup |
| # Title | |
| SimonSays Game | |
| # Picture | |
| media: http://www.deviantsart.com/fddvrk.jpg | |
| # Objective | |
| The goal of this project is to replicate the SimonSays Game for kids. The project employs few modifications to the Simon Says Arduino Game; implements an LCD and uses local native audio/tones. | |
| # Duration | |
| 8 hours | |
| # Age Group | |
| all |
| # Title | |
| Temperature Monitoring System / Logger | |
| # Picture | |
| media: http://www.deviantsart.com/e6gtc1.jpg | |
| # Objective | |
| The project is a simple monitoring system that records temperature, analyse recorded data visually(plots on graph), and send notification messages(SMS) via twilio. | |
| # Duration | |
| 4 hours minimum | |
| # Age Group | |
| all |
| /** | |
| * temperature & humidity logger | |
| * | |
| * @kobebigs Thu Mar 20, 2014 15:14:30 | |
| */ | |
| #include <Time.h> | |
| #include <DHT.h> | |
| //define connected pin |
| #!/usr/bin/perl | |
| =pod | |
| A simple perl program that creates random 16 char password strings from alphanumeric characters (0-9, a-z, A-Z) | |
| =cut | |
| use strict; | |
| use warnings; | |
| my @ranstr = ('0'..'9', 'a'..'z', 'A'..'Z'); | |
| my $pwdstr = join '' => map $ranstr[rand @ranstr], 0 .. 15; |