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
| #!/bin/sh | |
| for i in `ls -- *.mp`do | |
| fbody=`basename -- $i .mp` | |
| mv -- ${fbody}.mp ${fbody}.mp3 | |
| done |
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
| char temp[3]; | |
| unsigned int kmh; | |
| void setup() { | |
| // put your setup code here, to run once: | |
| Serial.begin(38400); | |
| temp[0] = 'C'; | |
| temp[1] = 'A'; | |
| } |
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 <Event.h> | |
| #include <Timer.h> | |
| #include <SPI.h> | |
| #include <LiquidCrystal.h> | |
| #include <dht.h> | |
| #define ledpin_red 13 //Arduino output pin for Shift Light Red led | |
| #define BT_CMD_RETRIES 5 //Number of retries for each Bluetooth AT command in case of not responde with OK | |
| #define OBD_CMD_RETRIES 20 //Number of retries for each OBD command in case of not receive prompt '>' char |
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 <MIDI.h> | |
| #include <CapacitiveSensor.h> | |
| int threshold = 2000, // for 10Mohm | |
| threshold2 = 200, // for 1Mohm | |
| channel = 1, velocity = 100, instrument = 0; | |
| boolean status1 = false, prev_status1 = false, | |
| status2 = false, prev_status2 = false, | |
| status3 = false, prev_status3 = false, |
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
| #!/bin/bash | |
| aconnect=/usr/bin/aconnect | |
| para="`$aconnect -i | grep ttymidi | awk '{print $2}' `0 `$aconnect -o | grep TiMidity | grep user | awk '{print $2}'`0" | |
| $aconnect $para |
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
| pi@raspberrypi ~/public_html/gopro $ cat take_picture_and_send.sh | |
| #!/bin/bash | |
| ## volume 100% | |
| curl "http://10.5.5.9/camera/BS?t=goprohero&p=%02" | |
| sleep 1 | |
| ## mode to photo | |
| curl "http://10.5.5.9/camera/CM?t=goprohero&p=%01" | |
| sleep 1 | |
| ## take picture | |
| curl "http://10.5.5.9/bacpac/SH?t=goprohero&p=%01" |
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
| --- wpa_supplicant.conf --- | |
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
| ctrl_interface_group=root | |
| update_config=1 | |
| #ap_scan=0 | |
| network={ | |
| ssid="GOPRO-WIFI" | |
| psk="goprohero" | |
| proto=WPA2 |
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
| function dates(from, to){ | |
| var format = 'YYYY-MM-DD HH:mm', | |
| f = moment(from, format), | |
| t = moment(to, format), | |
| current = '', | |
| result = []; | |
| while(current != to){ | |
| current = f.add('m',1).format(format); | |
| result.push(current); |
NewerOlder