Skip to content

Instantly share code, notes, and snippets.

View joelgallant's full-sized avatar
🚗

Joel Gallant joelgallant

🚗
View GitHub Profile
package calculator;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
package testing;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Timer;
public class Robot extends SimpleRobot {
@joelgallant
joelgallant / Gordian commands
Created March 10, 2013 20:40
Autonomous commands for gordian
encoderDistance() - Returns the current distance of the left side (resets to 0 at beginning of autonomous and when moving commands are run) (double)
isPastSetpoint() - Returns whether the shooter is at the setpoint RPM (boolean)
gyro() - Returns the angle of the gyro (double)
isEnabled() - Returns whether the driverstation is actually enabled (boolean)
print(Value) - Prints the value to the console
log(Value) - Prints the value to the drivestation, log file and console
arcade(Double, Double) - Drives using speed value and turn value respectively
tank(Double, Double) - Drives using left speed value and right speed value respectively
stop() - Stops the drivetrain
shiftGear() - Switches gear of the drivetrain
@joelgallant
joelgallant / gordianEx.txt
Last active December 17, 2015 18:29
Gordian 3.0 hypothetical example
// Run segments using @Name
@Autonomous {
method()
if(true)
method()
else
method()
method()
method()
@joelgallant
joelgallant / Checks.txt
Last active December 18, 2015 01:19
Checks for ATALibJ Classes
Security:
_ Internally used objects are private
_ All fields that can be final are final
_ All methods that are depended on in other methods should be final
_ Classes that are not final should not use its non-final methods inside of any of its own methods
_ Classes that should not be extended should be final
_ Internal classes should be static whenever possible
_ Enums should have private constructors
_ Minimize accessibility
_ Minimize mutability
@joelgallant
joelgallant / AlbumFinder.java
Last active December 19, 2015 03:09
Using [Java Music Tag](http://javamusictag.sourceforge.net/), finds albums from MusicBrainz based on title and artist. Isn't fantastic at doing things automatically (musicbrainz search is really bad at sorting). Look at source code to understand how to use.
package test;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Arrays;
import java.util.Iterator;
@joelgallant
joelgallant / gordian recursion
Last active December 19, 2015 09:59
Gordian concatenation recursion. I am so excited to see this working!
def concat(x, i)
def _concat(j, w, e)
if(e > 0)
return _concat(j + w, w, e - 1)
else
return j
end
end
@joelgallant
joelgallant / ConsoleGordian.java
Created July 31, 2013 03:36
A gordian console runtime that interprets instructions as you type them
import edu.gordian.elements.methods.UserMethod;
import edu.gordian.scopes.Scope;
import edu.gordian.values.UserReturningMethod;
import edu.gordian.values.Value;
import java.util.Scanner;
import java.util.StringTokenizer;
public class ConsoleGordian {
public static void main(String[] args) throws Exception {
@joelgallant
joelgallant / Gordian Tests
Last active December 22, 2015 18:59
Tests to ensure gordian is functioning correctly after a patch. Does not do absolutely everything, but it is sufficient for a release.
print('Should print 1')
print(x = 1)
print('Should print 2')
print(2)
print('Should print 3')
print(3.0)
print('Should print 1.000000000001')

Team Lead Responsibilities

Find list here.

Strategy

  • Includes all members of the team as valuable parts of strategic decisions
  • Ensures strategic decisions are made in timely fashion, by the deadlines set in schedules
  • Leads strategy discussions
  • Leads pick-list discussions