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 <iostream> | |
#define SLEEP 100000 // 100 millis | |
using namespace std; | |
void throb(char in) | |
{ | |
cout << "\b" << in; | |
cout.flush(); |
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
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); |
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
/** | |
* UML sucks | |
* @author Adam Carmichael <carneeki@carneeki.net> | |
* @since it was invented. | |
*/ |
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
{ | |
"_comment": "Scons for atom build package", | |
"_instructions": "Simply copy+paste this file into the project root", | |
"cmd": "scons" | |
} |
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
Set up directory layout something like this: | |
/home/<username>/src/comp202 | |
. | |
├── lec | |
│ └── week01 | |
├── Makefile | |
├── Makefile.mk | |
├── prac | |
│ └── week01 |
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 Makefile.mk | |
# INIT targets | |
stage1-init: | |
mkdir stage1 | |
touch stage1/stage1.c | |
cp stage1.mk stage1/Makefile | |
stage2-init: | |
mkdir stage2 |
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
\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. | |
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
\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 & |
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
#define _GNU_SOURCE // F U RMS... won't compile without this! | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* Inspired by a silly meme that tries to connect the alphabet and corresponding | |
* letters with numbers (A=1, B=2, ... Z=26) such that "HARDWORK" and "KNOWLEDGE" | |
* are insufficient, and only "ATTITUDE" = 100%. | |
*/ |
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
/* | |
* 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. |
OlderNewer