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
#include <Adafruit_NeoPixel.h> | |
const int motors[2][4] = {{10, 11, 3, 1}, {12, 13, 9, 2}}; | |
const int rightChannel = 1; | |
const int leftChannel = 2; | |
const int analogCenter = 1000; | |
const int analogRange = 400; | |
const int zeroRange = 40; | |
const int chan = 6; | |
const int motorMax = 255; |
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
from sys import argv | |
from math import pi, log10, floor | |
res = [10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91] | |
cap = [res[x] for x in range(len(res)) if x % 2 == 0] | |
pre = { | |
'cheb': [[1.231],[1.842],[.597,1.031],[1.582,2.660]], | |
'bessel': [[1.272],[1.268],[1.432,1.606],[1.084,1.759]] | |
} |
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
const int lockpin = 12; | |
const int blinkpin = 13; | |
const int combs[4] = {4,5,6,7}; | |
const int combination[3] = {0,1,2}, combinationLength = 3, inputLength = 100; | |
int input[100], index, prev[4]; | |
boolean locked = true; | |
void setup() { | |
pinMode(lockpin, OUTPUT); |
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
var ops = { | |
'+': [1, 'AD', function(a,b) { return a+b; }], | |
'-': [1, 'SU', function(a,b) { return a-b; }], | |
'*': [2, 'MU', function(a,b) { return a*b; }], | |
'/': [2, 'DI', function(a,b) { return a/b; }] | |
}; | |
var Compiler = function() { | |
}; |
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
const int latchpin = 8; | |
const int clockpin = 12; | |
const int datapin = 11; | |
const int bits[10] = {0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x67}; | |
int curVal = 99; | |
void setup() { | |
pinMode(latchpin, OUTPUT); |
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
#include <SoftwareSerial.h> | |
#include <Servo.h> | |
Servo servo; | |
void setup() | |
{ | |
servo.attach(2); | |
Serial.begin(9600); | |
} | |
void loop() |
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
// ==UserScript== | |
// @name Fix Iodine | |
// @namespace http://www.strikeskids.com | |
// @version 0.05 | |
// @description Fixes iodine's annoying either period activities | |
// @match https://iodine.tjhsst.edu/eighth/vcp_schedule/choose/* | |
// @copyright 2014+, Strikeskids | |
// ==/UserScript== | |
$(".activityInfoInner input").each(function() { |
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
final Scanner in = new Scanner(System.in); | |
System.out.println("Enter initial value of i: "); | |
while(!in.hasNextInt()){ | |
in.next(); | |
} | |
int i = in.nextInt(); | |
in.close(); | |
int len = State.values().length; |
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
alert('hi'); |
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
/* | |
KeyboardAndMouseControl | |
Controls the mouse from five pushbuttons on an Arduino Leonardo or Micro. | |
Hardware: | |
* 5 pushbuttons attached to D2, D3, D4, D5, D6 | |
The mouse movement is always relative. This sketch reads |
OlderNewer