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
/* | |
* 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
# -*- 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
cd /opt/scripts/ | |
sudo git pull | |
sudo ./tools/update_kernel.sh --beta-kernel | |
sudo reboot |
NewerOlder