Skip to content

Instantly share code, notes, and snippets.


Lee Crossley leecrossley

View GitHub Profile

Keybase proof

I hereby claim:

  • I am leecrossley on github.
  • I am leecrossley ( on keybase.
  • I have a public key whose fingerprint is 7C89 6B15 145B 8192 27D9 5539 42E7 FD6B DCDC 4365

To claim this, I am signing this object:

leecrossley / AndroidManifest.xml
Last active Aug 29, 2015
Android app phones only (not tablets)
View AndroidManifest.xml
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<screen android:screenSize="small" android:screenDensity="480" />
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
leecrossley / get-country-code.js
Created Aug 6, 2014
Getting a country dialling/calling code for a phone number
View get-country-code.js
var codes = [1,7,20,27,30,31,32,33,34,36,39,40,41,43,44,45,46,47,48,49,51,52,
leecrossley / index.js
Created Dec 8, 2014
requirebin sketch
View index.js
var request = require("request"),
fs = require("fs");
var getPostData = function (tag) {
return {
"url": "",
"formData": {
"tag": tag,
"bundle_file": fs.createReadStream(__dirname + "/../")
leecrossley / ss.txt
Last active Aug 29, 2015
Sprint Social Description
View ss.txt
*For iPhone 6, iPhone 6 Plus & iPhone 5s* - Sprinting just got Social.
The first short distance running app - race your friends anywhere, any time. Sprint Social combines the proven benefits of short bursts of high intensity exercise with the motivation of exercising with friends, even if they're not by your side.
Sprint Social harnesses the motivation of exercising with and challenging your Facebook friends, whatever your schedule or theirs. Race side by side, or across time zones and continents. Sprint Social uses Apple's gait recognition to measure your run. That means no waiting for GPS to lock on, no worries about privacy, no difference whether you're inside on a treadmill or out on your favourite 100m stretch.
If you are looking for inspiration to keep you active and improve your fitness, Sprint Social is for you. Sprints are easy to fit into your routine. No need to pace out or find markers in each new location you exercise in, Sprint Social does that for you. To measure the distance you cover, Spri
leecrossley / Happy Panda.
Created Mar 28, 2012
Panda: without context splurge, callbacks or base library.
View Happy Panda.
var panda = (function () {
var panda = {}, bambooLevel = 0, isAsleep = false;
function wakeUp() {
isAsleep = false;
panda.eatBamboo = function () {
bambooLevel = bambooLevel + 1;
View gist:2251165
<h1>CSS Basic Elements</h1>
<p>The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p>
<hr />
<h1 id="headings">Headings</h1>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
leecrossley / FuzzBuzz with CSS
Created May 7, 2012
There's no JavaScript or markup content :)
View FuzzBuzz with CSS
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>FuzzBuzz with CSS</title>
<style type="text/css">
leecrossley / cookieLaw.js
Created Jul 18, 2012
NICE Cookie Usage - shows a banner at the top of the page (once) if based in the EU.
View cookieLaw.js
(function ($) {
function setCookie(a, b, c) {
var d = new Date();
d.setDate(d.getDate() + c);
var e = escape(b) + ((c == null) ? "" : "; expires=" + d.toUTCString());
document.cookie = a + "=" + e;
function getCookie(a) {
var i, x, y, cookieArray = document.cookie.split(";");
View RDF Graph Writing
var turtleWriter = new CompressingTurtleWriter
HighSpeedModePermitted = true,
CompressionLevel = WriterCompressionLevel.None,
PrettyPrintMode = false