Skip to content

Instantly share code, notes, and snippets.

View alijnclarke's full-sized avatar
🥷

Ali Clarke alijnclarke

🥷
View GitHub Profile

Keybase proof

I hereby claim:

  • I am alijnclarke on github.
  • I am wasitdns (https://keybase.io/wasitdns) on keybase.
  • I have a public key ASDN3OwVfGMRWZbhmudPsOeFB8WilBWhK5rVBrP9eXGWWAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am alijnclarke on github.
  • I am aliclarke (https://keybase.io/aliclarke) on keybase.
  • I have a public key whose fingerprint is 604D 146B 5B76 497D 7E79 D51B B167 03F9 2C15 52EF

To claim this, I am signing this object:

@alijnclarke
alijnclarke / Dropbox File Picker.py
Created April 6, 2016 22:18 — forked from omz/Dropbox File Picker.py
Dropbox File Picker.py
# IMPORTANT SETUP INSTRUCTIONS:
#
# 1. Go to http://www.dropbox.com/developers/apps (log in if necessary)
# 2. Select "Create App"
# 3. Select the following settings:
# * "Dropbox API app"
# * "Files and datastores"
# * "(No) My app needs access to files already on Dropbox"
# * "All file types"
# * (Choose any app name)
@alijnclarke
alijnclarke / xbeeLED
Created April 14, 2013 12:54
xbee control of led on arduino uno
const int ledPin = 13; // the pin that the LED is attached to
int incomingByte; // a variable to read incoming serial data into
void setup() {
// initialize serial communication:
Serial.begin(9600);
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
}
@alijnclarke
alijnclarke / FilenameConstructor.py
Created December 1, 2012 02:12
COMP2740 - Filename module for quakes.py. Generates dynamic filename based on cmd arguments.
def filename(type):
''' Function to generate the correct name for the two files outputted by quakes.py
this function takes the parameter type as the identifier for the output required '''
global name
if type == "write":
name = 'quakes-' + str(sys.argv[1] + '-' + str(sys.argv[2]) + '.loc') #Concatinates string
elif type == "html":