Skip to content

Instantly share code, notes, and snippets.

🤷‍♂
🤷🏻‍♂️

Luke Lancaster luketlancaster

🤷‍♂
🤷🏻‍♂️
Block or report user

Report or block luketlancaster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am luketlancaster on github.
  • I am luketlancaster (https://keybase.io/luketlancaster) on keybase.
  • I have a public key ASBl2GiKqdTz2zI0y1a-4cF8sRjsO2AGtg4ckwCuxi61-Qo

To claim this, I am signing this object:

@luketlancaster
luketlancaster / speedit.sh
Created Oct 21, 2016
Speedtest Runner and Parser
View speedit.sh
#! /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 https://github.com/sivel/speedtest-cli
# Or, you can just use the following:
# $ curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
# $ chmod +x speedtest-cli
# This file will need to be executable as well
@luketlancaster
luketlancaster / coin-problem.php
Created Oct 15, 2016
Coin problem from FiveThirtyEight
View coin-problem.php
<?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
luketlancaster / domain_value_objects.md
Created Sep 26, 2016
Notes about Domain Value Objects
View domain_value_objects.md
View herokulitalogs.txt
2016-08-16T18:16:59.014617+00:00 heroku[api]: Starting process with command `lita` by luketlancaster@gmail.com
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="/" host=lancaster-lita.herokuapp.com request_id=a5cc52fa-0daa-48b2-9480-13f0cf231bf5 fwd="69.245.25.217" 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="/" host=lancaster-lita.herokuapp.com request_id=0b8e95c1-197d-4eb1-9685-d3d40a1f0e24 fwd="69.245.25.217" dyno= connect= service= status=503 bytes=
20
View fibb.rb
index = ARGV[0].to_i
def fibb(times)
start = [0]
times.times do |x|
if x.zero?
start << 1
else
start << start[x -1] + start[x]
end
end
View prayer.md

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
luketlancaster / battleship.py
Last active Sep 15, 2015
Battleship game made through CodeAcademy
View battleship.py
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)
View fizzbuzz.cpp
int a = 0;
void setup() {
Serial.begin(9600);
Serial.println("FizzBuzz:");
}
void loop() {
if (a % 15 == 0)
You can’t perform that action at this time.