Skip to content

Instantly share code, notes, and snippets.


Luke Lancaster luketlancaster

View GitHub Profile

Git Stuff

  1. $ mdkir test
  2. $ cd test
  3. $ touch
  4. Edit that file, putting the name of the repo at the top
    • $ code .
    • # test
  5. $ git init
  6. $ git add

Keybase proof

I hereby claim:

  • I am luketlancaster on github.
  • I am luketlancaster ( on keybase.
  • I have a public key ASBl2GiKqdTz2zI0y1a-4cF8sRjsO2AGtg4ckwCuxi61-Qo

To claim this, I am signing this object:

luketlancaster /
Created Oct 21, 2016
Speedtest Runner and Parser
#! /bin/bash
# This is a script to run the speedtest-cli command, you'll need to make sure it's
# installed and that you know the location of it.
# The speedtest-cli can be found at
# Or, you can just use the following:
# $ curl -Lo speedtest-cli
# $ chmod +x speedtest-cli
# This file will need to be executable as well
luketlancaster / coin-problem.php
Created Oct 15, 2016
Coin problem from FiveThirtyEight
View coin-problem.php
$coins = array_fill(0,100,'h');
// We need to loop n times, where n == the length of the array
for ($counter = 1; $counter <= count($coins); $counter++) {
// We need to go through each element in the array, testing
// it's position and changing it if it meets the requirements
foreach($coins as $position => $coin) {
luketlancaster /
Created Sep 26, 2016
Notes about Domain Value Objects
View herokulitalogs.txt
2016-08-16T18:16:59.014617+00:00 heroku[api]: Starting process with command `lita` by
2016-08-16T18:17:01.484377+00:00 heroku[run.4784]: Awaiting client
2016-08-16T18:17:01.519315+00:00 heroku[run.4784]: Starting process with command `lita`
2016-08-16T18:17:01.598283+00:00 heroku[run.4784]: State changed from starting to up
2016-08-16T18:17:04.981507+00:00 heroku[run.4784]: Process exited with status 1
2016-08-16T18:17:04.988891+00:00 heroku[run.4784]: State changed from up to complete
2016-08-16T18:18:38.922944+00:00 heroku[router]: at=error code=H99 desc="Platform error" method=GET path="/" request_id=a5cc52fa-0daa-48b2-9480-13f0cf231bf5 fwd="" dyno= connect= service= status=503 bytes=
2016-08-16T18:19:38.037729+00:00 heroku[router]: at=error code=H99 desc="Platform error" method=GET path="/" request_id=0b8e95c1-197d-4eb1-9685-d3d40a1f0e24 fwd="" dyno= connect= service= status=503 bytes=
View fibb.rb
index = ARGV[0].to_i
def fibb(times)
start = [0]
times.times do |x|
start << 1
start << start[x -1] + start[x]

Eternal God, creator and redeemer, from whom comes every good and perfect gift, fill Jess and Luke with the riches of your grace and breathe into their marriage the strength of your holy and life-giving Spirit.

Send upon them the gift of love that puts no limit to its faith and forbearance.

View router.ex
defmodule Support.Router do
use Support.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :assign_current_user
luketlancaster /
Last active Sep 15, 2015
Battleship game made through CodeAcademy
from random import randint
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)
You can’t perform that action at this time.