Skip to content

Instantly share code, notes, and snippets.

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

Luke Lancaster luketlancaster

🤷‍♂️
🤷🏻‍♂️
View GitHub Profile
@luketlancaster
luketlancaster / domain_value_objects.md
Created September 26, 2016 18:44
Notes about Domain Value Objects
@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 / 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 / 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 / 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 / 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!