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
| public class Name implements Comparable { | |
| private String first, last; | |
| public Name (String firstName, String lastName) { | |
| first = firstName; | |
| last = lastName; | |
| } | |
| public int compareTo(Object obj) { | |
| Name other = (Name) obj; |
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
| there is n:d=4,o=5,b=150:12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64g,12a3,12p,12p,12a3,12f#3,12a3,12p,12p,12d4,12f#3,12a3,12p,12p,12b3,12b3,12d4,12p,12p,12g3,12b3,12d4,12p,12p,12d3,12f#3,12a3,12p,12p,12f#3,12f#3,12a3,12p,12p,12g3,24b3,39p,64f#,12d4,12p,12p,12b3,24b3,39p,64a,12d4,12p,12p,12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64a4,12a3,12p,12p,12e3,24g3,39p,64d,12b3,12p,12p,12g3,24g3,39p,64f#,12b3,12p,12p,12a3,12c#4,12e4,12p,12p,12c#3,12b3,12a3,12p,12p,12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64g,12a3,12p,12p,12a3,12f#3,12a3,12p,12p,12d4,12f#3,12a3,12p,12p,12b3,12b3,12d4,12p,12p,12g3,12b3,12d4,12p,12p,12d3,12f#3,12a3,12p,12p,12f#3,12f#3,12a3,12p,12p,12g3,24b3,39p,64f#,12d4,12p,12p,12b3,24b3,39p,64a,12d4,12p,12p,12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64a4,12a3,12p,12p,12e3,24g3,39p,64d,12b3,12p,12p,12g3,24g3,39p,64f#,12b3,12p,12p,12a3,12c#4,12e4,12p,12p,12c#3,12b3,12a3,12p,12p,12g2,24b3,39p,64a4,12d4,12p,12p,12b2,24b3,39p,64c#,12d4,12p,12p,12d3,12f#3,12a3,12p,12p,12f#3,24f#3,39p |
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
| void clearLCD () { | |
| clearLCDLine(0); | |
| clearLCDLine(1); | |
| } | |
| void waitForRelease () { | |
| while(nLCDButtons != 0) | |
| delay(25); | |
| } |
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
| //Returns the number of factors of x, starting at n | |
| public int mystery (int n, int x) { | |
| return (n<x)?((int) n%x==0)+mystery(n+1, x):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
| activate application "Google Chrome" | |
| set tabcount to 11 | |
| set firstpagetabcount to 12 | |
| set secondpagetabcount to 13 | |
| set returntocoursepagecount to 9 | |
| set moduleURL to "http://www.vdriveusa.com/moodle/mod/flash/view.php?id=111" | |
| set AppleScript's text item delimiters to "?" | |
| set firstTime to true | |
| set pageURL to "a?" | |
| set delayTime to 30 |
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 | |
| for i in `seq 1 24`; | |
| do | |
| ./cartLabel.py --print --label $i | |
| 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
| void setLeftWheelSpeed(int speed) { | |
| motor[leftWheel1] = speed; | |
| motor[leftWheel2] = speed; | |
| motor[leftWheel3] = speed; | |
| motor[leftWheel4] = speed; | |
| } | |
| void setRightWheelSpeed(int speed) { | |
| motor[rightWheel1] = speed; |
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
| #pragma config(Sensor, dgtl1, liftBottom, sensorTouch) | |
| #pragma config(Motor, port1, liftL3, tmotorVex393_HBridge, openLoop, reversed) | |
| #pragma config(Motor, port2, liftR1, tmotorVex393_MC29, openLoop) | |
| #pragma config(Motor, port3, liftR2, tmotorVex393_MC29, openLoop) | |
| #pragma config(Motor, port4, leftDrive, tmotorVex393HighSpeed_MC29, openLoop, driveLeft) | |
| #pragma config(Motor, port5, liftL1, tmotorVex393_MC29, openLoop, reversed) | |
| #pragma config(Motor, port6, liftL2, tmotorVex393_MC29, openLoop) | |
| #pragma config(Motor, port7, rightDrive, tmotorVex393HighSpeed_MC29, openLoop, reversed, driveRight) | |
| #pragma config(Motor, port8, , tmotorVex393HighSpeed_MC29, openLoop, reversed) | |
| #pragma config(Motor, port9, intake, tmotorVex393_MC29, openLoop) |
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
| #pragma config(Sensor, dgtl1, liftBottom, sensorTouch) | |
| #pragma config(Motor, port1, liftRI, tmotorVex393_HBridge, openLoop) | |
| #pragma config(Motor, port2, liftRO, tmotorVex393_MC29, openLoop) | |
| #pragma config(Motor, port3, liftLI, tmotorVex393_MC29, openLoop) | |
| #pragma config(Motor, port4, liftLO, tmotorVex393_MC29, openLoop, reversed) | |
| #pragma config(Motor, port5, intake1, tmotorVex393_MC29, openLoop, reversed) | |
| #pragma config(Motor, port6, intake2, tmotorVex393_MC29, openLoop) | |
| #pragma config(Motor, port7, leftDrive1, tmotorVex393HighSpeed_MC29, openLoop, driveRight) | |
| #pragma config(Motor, port8, leftDrive2, tmotorVex393HighSpeed_MC29, openLoop) | |
| #pragma config(Motor, port9, rightDrive1, tmotorVex393HighSpeed_MC29, openLoop, reversed) |
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
| #pragma config(I2C_Usage, I2C1, i2cSensors) | |
| #pragma config(Sensor, in1, clawPot2, sensorPotentiometer) | |
| #pragma config(Sensor, in2, clawPot1, sensorPotentiometer) | |
| #pragma config(Sensor, dgtl1, liftBottom, sensorTouch) | |
| #pragma config(Sensor, dgtl2, autonRL, sensorTouch) | |
| #pragma config(Sensor, I2C_1, driveR, sensorQuadEncoderOnI2CPort, , AutoAssign ) | |
| #pragma config(Sensor, I2C_2, driveL, sensorQuadEncoderOnI2CPort, , AutoAssign ) | |
| #pragma config(Sensor, I2C_3, liftEncoder, sensorQuadEncoderOnI2CPort, , AutoAssign ) | |
| #pragma config(Motor, port1, liftL3, tmotorVex393HighSpeed_HBridge, openLoop) | |
| #pragma config(Motor, port2, leftDrive, tmotorVex393HighSpeed_MC29, openLoop, encoderPort, I2C_1) |