Skip to content

Instantly share code, notes, and snippets.

View luketlancaster's full-sized avatar
🤷‍♂️
🤷🏻‍♂️

Luke Lancaster luketlancaster

🤷‍♂️
🤷🏻‍♂️
View GitHub Profile
@luketlancaster
luketlancaster / birbWatcher.md
Last active August 31, 2020 19:27
Todos for Birb Wather in React

Birb Watcher

We're gonna make a Birb Watching app! A place to track all those 🐦s you see flying around! Here's what we need to do to get started:

  1. If you have scat-surprise, that's the repo we'll be using. Let's change the name: mv scat-surprise birb-watcher
  2. Make sure you've npm i and npm start and that it's all working as expected
  3. Do the Auth bit
  4. Initial Component creation

This is going to be even more simple than React Pinterest was, in the interest of showing off ReactRouter. So only one collection!

@luketlancaster
luketlancaster / lukeGitFlow.md
Last active April 15, 2020 00:23
Git Flow!!!

Git Stuff

  1. $ mdkir test
  2. $ cd test
  3. $ touch README.md
  4. Edit that README.md file, putting the name of the repo at the top
    • $ code .
    • # test
  5. $ git init
  6. $ git add README.md
@luketlancaster
luketlancaster / keybase.md
Created October 4, 2017 17:22
Keybase Proof

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 October 21, 2016 20:04
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 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 October 15, 2016 17:00
Coin problem from FiveThirtyEight
<?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 September 26, 2016 18:44
Notes about Domain Value Objects
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
@luketlancaster
luketlancaster / fibb.rb
Created November 3, 2015 18:49
Fibonacci method
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

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.

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