Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke lukem512

View GitHub Profile
View OneName Verification
Verifying that +lukecrypto is my Bitcoin username. You can send me #bitcoin here: https://onename.io/lukecrypto
@lukem512
lukem512 / watcher.html
Created Mar 24, 2015
Insight Payment Watcher for StartCOIN
View watcher.html
<html>
<head>
<title>StartCOIN Payment Watcher</title>
<script src="https://cdn.socket.io/socket.io-1.3.4.js"></script>
<script>
// Create an XML request
var createRequest = function() {
var result = null;
if (window.XMLHttpRequest) {
// FireFox, Safari, etc.
@lukem512
lukem512 / currencies.json
Last active Aug 29, 2015
StartCOIN Ticker
View currencies.json
{
"START": "StartCOIN",
"BTC": "Bitcoin",
"USD": "US Dollar",
"EUR": "Eurozone Euro",
"GBP": "Pound Sterling",
"JPY": "Japanese Yen",
"CAD": "Canadian Dollar",
"AUD": "Australian Dollar",
"CNY": "Chinese Yuan",
@lukem512
lukem512 / list.c
Created Apr 13, 2015
Linked List ADS
View list.c
// Luke Mitchell
// Linked List
// 22-11-2011
// edited 12/12/2011 for CW1 [100%]
// edited 27/12/2011 for CW2
#ifndef LIST_H
#define LIST_H
/* Includes */
View elf_hash.c
int hash (int table_size, char* data)
{
unsigned h = 0, g;
int len = strlen (data);
int i;
for ( i = 0; i < len; i++ ) {
h = ( h << 4 ) + data[i];
g = h & 0xf0000000L;
@lukem512
lukem512 / tree.c
Last active Aug 29, 2015
Binary Tree ADS
View tree.c
/*
*
* Principles of programming, coursework 1 [100%]
* Luke Mitchell - lm0466
* 08/12/2011
*
*/
#include <stdio.h>
#include <string.h>
@lukem512
lukem512 / Shell
Last active Feb 20, 2016
Convert an image into a favicon with multiple sizes using ImageMagick
View Shell
convert image.png -bordercolor white -border 0 \
\( -clone 0 -resize 16x16 \) \
\( -clone 0 -resize 32x32 \) \
\( -clone 0 -resize 48x48 \) \
\( -clone 0 -resize 64x64 \) \
-delete 0 -colors 256 favicon.ico
@lukem512
lukem512 / Keybase.md
Created Feb 25, 2016
Verification for my Keybase.io Profile
View Keybase.md

Keybase proof

I hereby claim:

  • I am lukem512 on github.
  • I am lukemitchell (https://keybase.io/lukemitchell) on keybase.
  • I have a public key whose fingerprint is D83E 1825 CCA2 1F1B 0216 3D39 9177 EEC4 EDED 967C

To claim this, I am signing this object:

@lukem512
lukem512 / critical.js
Created May 1, 2016
Find the critical value of the Mann-Whitney U Test (or the Robust Rank Order) using a Monte Carlo simulation
View critical.js
// Luke Mitchell, 2016
"use strict"
var mwu = require('mann-whitney-utest');
const DEFAULT_COUNT = 1000000
const DEFAULT_P = 0.05
function min (us) {
if (us[0] < us[1])
@lukem512
lukem512 / finalproj.m
Last active Jul 12, 2016
Genetic Algorithms: Final Project
View finalproj.m
% Final Project
% Luke Mitchell (lm0466)
% Main MATLAB script
function finalproj
% Retrieve mtDNA from GenBank
killerwhale = getgenbank('NC_023889');
disp(['Using ', killerwhale.Definition]);
% All organisms are vertebrates