Skip to content

Instantly share code, notes, and snippets.

View SamClarke2012's full-sized avatar

Samuel Clarke SamClarke2012

  • Sydney
View GitHub Profile
using namespace std;
#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <fstream>
#include <cassert>
#include <climits>
#include <cstdlib>
#include <cstring>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace SuffixTreeAlgorithm
{
public class SuffixTree
{
# M.I.T Data Science 6.00.2x Problem Set 2: Simulating robots
import math
import random
import ps2_visualize
import pylab
# For Python 2.7:
from ps2_verify_movement27 import testRobotMovement
@SamClarke2012
SamClarke2012 / overview
Created September 5, 2013 06:04
Arduino Overview
#include "SomeNeededResource.h" // Include dependancies (if any) here at the top
#define LED = 13; // Global defines should immediately follow the dependancies
#define LED = 12;
int switchState = 13; // Global variables and/or constants should be before the setup function
void setup() { // Code placed in the setup function will run _ONCE_ on MCU init
// one would setup I/O pins etc here, i.e....
pinMode(LED, OUTPUT); // Set pin 13 to an output
@SamClarke2012
SamClarke2012 / Sat_DOPE.ino
Last active June 30, 2019 09:14
Satellite Tracking on Teensy 3 using PLAN13 and GPS
/*
_____ ___ _____ ______ ___________ _____
/ ___|/ _ \_ _| | _ \ _ | ___ \ ___|
\ `--./ /_\ \| |______| | | | | | | |_/ / |__
`--. \ _ || |______| | | | | | | __/| __|
/\__/ / | | || | | |/ /\ \_/ / | | |___
\____/\_| |_/\_/ |___/ \___/\_| \____/
[Satellite Data On Personal Eqipment]
@SamClarke2012
SamClarke2012 / Helios_Example.ino
Last active December 11, 2015 19:58
Helios Arduino Library Example http://sam-clarke.blogspot.com
#include <Helios.h>
/////////// TEMPORARY TEST VARIABLES //////////////////////
int TheYear = 2013;
int TheMonth = 1;
int TheDay = 16;
double TheHour = 04.00; /* UTC TIME! */
double TheMinute = 0.00;
double TheSeconds = 0.00;
double YourLongitude = // your longitude [e.g 151.857964];