Skip to content

Instantly share code, notes, and snippets.

View carneeki's full-sized avatar

Adam carneeki

View GitHub Profile
@carneeki
carneeki / numbering systems
Created July 25, 2012 13:06 — forked from anonymous/numbering systems
numbering systems section
\part{Number Systems, Operations, and Codes}
\section{Number Systems}
For most of us we have only ever known one numbering system, decimal
and for that reason it can be easy to overlook the arbitrary nature
of such a system but more importantly it can be easy to overlook the
fact it isn't the only one.
@carneeki
carneeki / rtm.tex
Created October 4, 2012 19:47
Requirements Traceability Matrix
\chapter{Requirements Traceability Matrix}
\begin{table}[!htb]
\rowcolors{2}{gray!12.5}{white}
\begin{tabularx}{\linewidth}{ c c c l c X }
ID & From-ID & To-ID & Type & Build \# & Use Case/Class etc\ldots \\ \hline
\texttt{X-YY-nn} & \texttt{X-YY-nn} & \texttt{X-YY-nn} & Type & Build Number &
Use Case Name \\
\texttt{X-YY-nn} & \texttt{X-YY-nn} & \texttt{X-YY-nn} & Type & Build Number &
Use Case Name \\
\texttt{X-YY-nn} & \texttt{X-YY-nn} & \texttt{X-YY-nn} & Type & Build Number &
@carneeki
carneeki / TEAM-4774-JAVATUT-002-LoopFor.java
Last active December 10, 2015 09:09
Demonstrate loops using for() syntax
class LoopFor
{
public static void main (String[] args)
{
for(int i=1; i<=10; i++) // here we create our counter, then set the condition,
// and finally increment the counter all in one line
{
System.out.println(i); // this is where we do our stuff
}
}
@carneeki
carneeki / TEAM-4774-JAVATUT-001-LoopWhile.java
Last active December 10, 2015 09:08
Demonstrate loops using while
/*
* loopWhile
* Demonstrate loops using the 'while' structure
*/
class loopWhile
{
public static void main (String[] args)
{
int i=1; // here we create our counter called i.
@carneeki
carneeki / TEAM-4774-JAVATUT-000-HelloWorld.java
Last active December 10, 2015 09:09
HelloWorld - the classic first program to write.
class HelloWorld
{
public static void main (String[] args)
{
System.out.println("Hello World!");
}
}
@carneeki
carneeki / Tachometer.java
Created February 2, 2013 20:27
possible tachometer for plugging in to PIDController / PIDSubsystem
package first.frc.landownunder.components;
import edu.wpi.first.wpilibj.Counter;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.PIDSource;
/**
* A tachometer using DigitalInput high pulses.
* @author carneeki
* @since 2012-02-03 05:05AEDT
@carneeki
carneeki / throbber.cpp
Last active August 29, 2015 14:11
Text throbber / waiting thingy
#include <iostream>
#define SLEEP 100000 // 100 millis
using namespace std;
void throb(char in)
{
cout << "\b" << in;
cout.flush();
@carneeki
carneeki / autonomousExample.java
Last active August 29, 2015 14:15
Autonomous Robot Example demonstrating while(), Timers and Talons
public class Robot
{
/* There will be some code here to initialise the robot
* but I can't remember what it is off the top of my head.
* Eclipse will automatically generate it for us though. :)
*/
public void autonomous()
{
Talon leftTalon = new Talon(2);
@carneeki
carneeki / UML.java
Created April 14, 2015 01:25
UML description
/**
* UML sucks
* @author Adam Carmichael <carneeki@carneeki.net>
* @since it was invented.
*/
{
"_comment": "Scons for atom build package",
"_instructions": "Simply copy+paste this file into the project root",
"cmd": "scons"
}