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
cd /opt/scripts/ | |
sudo git pull | |
sudo ./tools/update_kernel.sh --beta-kernel | |
sudo reboot |
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
# -*- coding: utf-8 -*- | |
# algorithm from http://en.wikipedia.org/wiki/Sieve_of_Atkin | |
# written by J.Brian 11/17/2014 | |
import math | |
import threading | |
class Sieve: | |
def __init__(self): |
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
/* | |
* The function of this class is to find all prime numbers in range given by the user. | |
* | |
* This homework assignment requires several references: | |
* http://www.avajava.com/tutorials/lessons/how-do-i-use-threads-join-method.html | |
* http://stackoverflow.com/questions/1428786/best-way-to-find-a-prime-number | |
* http://web.mit.edu/16.070/www/lecture/big_o.pdf | |
* http://en.wikipedia.org/wiki/Sieve_of_Atkin | |
* http://stackoverflow.com/questions/3790142/java-equivalent-of-pythons-rangeint-int | |
* http://stackoverflow.com/questions/17279519/removing-items-from-list-in-java |
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
//J.Brian 1-22-2015 | |
// inputString format: | |
// vert, port, stbd, aux1, aux2, aux3 | |
// Control -> Forward: | |
// DIO 4, PWM 5 -> Forward | |
// DIO 2, PWM 3 -> Reverse | |
// Slave Control 1 -> Vert: | |
// DIO 7, PWM 6 -> 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
//J.Brian 1-22-2015 | |
// inputString format: | |
// vert, port, stbd, aux1, aux2, aux3 | |
// Control -> Forward: | |
// DIO 4, PWM 5 -> Forward | |
// DIO 2, PWM 3 -> Reverse | |
// Slave Control 1 -> Vert: | |
// DIO 7, PWM 6 -> 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
//J.Brian 1-22-2015 | |
// inputString format: | |
// vert, port, stbd, aux1, aux2, aux3 | |
#include <SerialBuffer.h> | |
// change this to Serial1 etc if you're using an Arduino Mega | |
#define SERIAL_PORT Serial | |
#define BUFFER_SIZE 64 |
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
For this program I highly recommend the use of 'Guake', additionally for proper display I recommend Opera beta on a 64bit ubuntu install | |
http://www.opera.com/computer/beta | |
sudo apt-get install guake | |
start guake press F12 for terminal window | |
sudo apt-get install build-essential python-dev python-setuptools python-pip |
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
# -*- coding: utf-8 -*- | |
# J.Brian 1-22-2015 | |
import Adafruit_BBIO.UART as uart | |
import socket | |
import serial | |
import threading | |
import ast | |
import time | |
from random import randint |
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
/*************************************************************************************************************** | |
* Razor AHRS Firmware v1.4.2 | |
* 9 Degree of Measurement Attitude and Heading Reference System | |
* for Sparkfun "9DOF Razor IMU" (SEN-10125 and SEN-10736) | |
* and "9DOF Sensor Stick" (SEN-10183, 10321 and SEN-10724) | |
* | |
* Released under GNU GPL (General Public License) v3.0 | |
* Copyright (C) 2013 Peter Bartz [http://ptrbrtz.net] | |
* Copyright (C) 2011-2012 Quality & Usability Lab, Deutsche Telekom Laboratories, TU Berlin |
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
/* | |
MS5541 Pressure Sensor calwords readout | |
This program will read your MS5441 or compatible pressure sensor every 5 seconds and show you the calibration words, the calibration factors, | |
the raw values and the compensated values of temperature and pressure. | |
Once you read out the calibration factors you can define them in the header of any sketch you write for the sensor. | |
Pins: | |
MS5541 sensor attached to pins 10 - 13: | |
MOSI: pin 11 |
OlderNewer