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 <stdio.h> | |
| #include <stdint.h> | |
| #define BUFSIZE 250 | |
| int main() { | |
| FILE *fp; | |
| fp = fopen("mockdata.txt", "rb"); | |
| char buffer[BUFSIZE]; |
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 python3 | |
| import time | |
| import pyautogui | |
| def autodrag(): | |
| pyautogui.click() | |
| pyautogui.dragRel(30,0) | |
| pyautogui.dragRel(30,0) | |
| pyautogui.dragRel(-30,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
| #!/bin/sh | |
| for f in `ls | grep Analog_Frontend`; do | |
| mv $f `echo $f | sed -n 's/Analog_Frontend/Phased_Array/p'` | |
| 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
| /** | |
| * Laser UART Receiver | |
| * William Meng | |
| * 2/16/17 | |
| * | |
| * Based on "Gateway_better_code_receive.ino" by Sean Zimmermann | |
| * | |
| * What's new in this version: | |
| * The program has been updated to work better with the laser | |
| * transmitter and solar cell receiver circuit. The bitrate has been |
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 python3 | |
| # aeblue_data_analysis.py | |
| # William Meng | |
| # Nov 28, 2016 | |
| from PIL import Image | |
| def calculate_average_hsv(im): | |
| width, height = im.size | |
| total_pixels = width*height |
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 python2 | |
| # | |
| # filename_to_timestamp.py | |
| # | |
| # Purpose: set the EXIF timestamp of an image to match the formatted date+time | |
| # string in the image's filename | |
| # | |
| # References: http://photo.stackexchange.com/a/2974 | |
| import sys |
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 python2 | |
| # | |
| # server_rebooter.py | |
| import time | |
| import RPi.GPIO as GPIO | |
| GPIO.setmode(GPIO.BCM) # use Broadcom numbering system | |
| GPIO.setwarnings(False) # override any warnings about a pin being in use, comment this out to show those warnings | |
| def relay_pin(relay_name): |