Skip to content

Instantly share code, notes, and snippets.

View simplyluke's full-sized avatar

Luke Wright simplyluke

View GitHub Profile
@simplyluke
simplyluke / gist:7557842
Last active December 28, 2015 20:29
.vimrc
:set number
:syntax on
:colorscheme solarized
:set tabstop=2
:set shiftwidth=2
:set expandtab
@simplyluke
simplyluke / gist:7557856
Created November 20, 2013 04:43
pgp public key - luke@simplyluke.com
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.0
mQINBFHcY3gBEAC6+EYoo80RApDi6RGtuyt9czBKcxms9WdlVrTOEULvZ9INY56ugCTC+R5T
l49pj97NE3R12QAZdchd7XsqFWeeTr3jUMQo2FMZ3LX+yzoqDCjKkIQwe9S9iqjwgn3KmQbV
9akB/W1lXuQXhAHQ6IDVKBjvKPZiDndNLpaJ4Eu45HZtTBitM9g7gTRAE+MetmQf5xD9a/ar
RUi8Gwm1OTT7HE85p6rxY4U5w8pk/9ffhCfoTvcOfHF/TZUf+8+W0L0p0dI5t1IlnpJ6Sc5I
xFeOkPZIHnl3k6EKMKO/2FH287OrUGgzIoczR/8Evy+u6jR6kTg3pgAd+Z+EZqIa8crE9EXl
ymJUhH3KjZUJJnhBAsB6LGxproELaVTFTYSHRUmbDM8qE31Be6FkMgRRAOcIQBTBZYXAN+c6
D29ACMGGi5ZY52x1Hef+jNGT8qTAEsN8QNjcUV7nkWrZ26KRKM76s3x4QzJRI+fdSTqt84AJ
@simplyluke
simplyluke / gist:8078644
Created December 22, 2013 04:59
Code club facebook solicitation
Austin High Students: I'm looking to start a code club in which we teach some programming skills and also collaborate in small groups on interesting projects.
I'm looking for 1 or 2 people to help me start this and a teacher to sponsor the club (they don't need to be overly involved in it, but AHS requires one). You don't need to be a programmer to help lead this, but you do need to have a desire to learn and help.
I'm working with a non-profit trying to enable starting these kinds of clubs with some very talented educators and coders in LA to help provide the materials.
If you know anyone who you think would be interested or teachers who may be able to sponsor it please let me know.
@simplyluke
simplyluke / gist:8191381
Last active January 1, 2016 19:38
RP Application API Design

Outline: RESTful API to manage the infrastructure of the application. Create users/goals/points via API and build mobile applications on top of it. I'm not too familiar with developing apps in this way, but it does not seem overly complicated. Pleae correct anything obviously wrong with this plan, still a noob

Users

Endpoints:

Users:

  • get /users, returns all users
  • get /users/:id, returns user
@simplyluke
simplyluke / homework.py
Last active January 3, 2016 01:59
the bridge problem
def higher(x):
a = (x-252.0)**2.0
b = a/(-824.0)
return b + 136 - 59
def lower(x):
a = (x-252.0)**2.0
b = a/(-538.1695)
return b + 118 - 59
@simplyluke
simplyluke / gist:9847587
Created March 29, 2014 03:03
keybase.md

Keybase proof

I hereby claim:

  • I am simplyluke on github.
  • I am simplyluke (https://keybase.io/simplyluke) on keybase.
  • I have a public key whose fingerprint is 9DE8 4C81 393B 7FCA 0F64 FD91 F908 B546 06AC 221D

To claim this, I am signing this object:

# Be sure to restart your server when you modify this file.
# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.
# Make sure your secret_key_base is kept private
@simplyluke
simplyluke / .rtorrent.rc
Created April 26, 2014 16:30
.rtorrent.rc
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# NECESSARY FOR YOUR WEBUI, DO NOT COMMENT THESE OUT. - fuck webui, I command line
# scgi_port = 127.0.0.1:5000
# encoding_list = UTF-8
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
// April Zero Style
$(document).ready(function() {
var year = 31536000730;
function age(){
var now = Date.now();
var myAge = now - (new Date(1997, 11, 19));
var years = myAge/year;
return years.toString().substring(0, 15);
}
{
{
"id" : "1",
"name": "Lorem Ipsum",
"url" : "http://balloonchallenge.org/teams/1",
"location": {
"latitude": "30.2807033",
"longitude": "97.755326"
}