Skip to content

Instantly share code, notes, and snippets.

View jkingsman's full-sized avatar
🇳🇿

Jack Kingsman jkingsman

🇳🇿
View GitHub Profile
Two sheets flaky puff pastry
Rindless bacon (trimmed regular or canadian bacon) (about 5 pieces of bologna-slice size)
2-3 tomatos (enough to cover top of pie in single layer)
6-7 eggs
~1/2 tsp salt or to preference
Milk
Preheat oven at 400F
Roll pastry out to 4mm thick if not pre-rolled. Lay first sheet into dish.
@jkingsman
jkingsman / checkapps.sh
Last active June 2, 2022 19:47
Handy Functions & Git Prompts
# checks for apps I know I want wherever I go
checkApps(){
echo "====== CHECKING INSTALLED APPS ======"
declare -a expected=("apm" "atom" "atom" "bower" "brew" "eslint" "ffmpeg" "gem" "jshint" "jslint" "mocha" "nmap" "node" "npm" "pip" "pip3" "python" "python2" "python3" "ruby" "vim")
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
@jkingsman
jkingsman / markdownConvert (bytecode)
Last active August 3, 2017 02:31
ETH Markdown Converter
60606040525b60008054600160a060020a03191633600160a060020a03161790555b5b610a7b806100316000396000f300606060405263ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166320fba162811461005357806341c0e1b5146100de57806366792ba1146100f3575b600080fd5b341561005e57600080fd5b6100666101bc565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100a35780820151818401525b60200161008a565b50505050905090810190601f1680156100d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156100e957600080fd5b6100f16101e2565b005b34156100fe57600080fd5b61006660046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061022495505050505050565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100a35780820151818401525b60200161008a565b50505050905090810190601f1680156100d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c46109a3565b60c06040519081016040
@jkingsman
jkingsman / example.html
Last active April 26, 2017 19:16
Microharness mod to support async
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Example microHarness Page</title>
</head>
<body>
<p>Check your console</p>
@jkingsman
jkingsman / ACMChallenge.js
Last active February 8, 2017 06:57
ES6/JS Fibonacci One-liner
function fibonacci(numList){numList.split('\n').splice(1).forEach((number)=>console.log([0,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,317811,514229,832040,1346269,2178309,3524578,5702887,9227465,14930352,24157817,39088169,63245986,102334155,165580141,267914296,433494437,701408733,1134903170,1836311903,2971215073,4807526976,7778742049,12586269025].indexOf(Number(number))+1?'IsFibo':'IsNotFibo'))}
// example usage
var numbers = `5
2
3
8
12312
9001`;
@jkingsman
jkingsman / shrug.js
Last active August 26, 2019 14:56
Shrug Emoji Bookmarklet
javascript:(function(){document.activeElement.value=document.activeElement.value+'¯\\_(ツ)_/¯';})();
@jkingsman
jkingsman / keybase.md
Created September 30, 2015 17:21
keybase.md

Keybase proof

I hereby claim:

  • I am jkingsman on github.
  • I am jackkingsman (https://keybase.io/jackkingsman) on keybase.
  • I have a public key whose fingerprint is 6529 01CC C690 5249 2382 892D 31A8 BF56 9DEB 5F21

To claim this, I am signing this object:

@jkingsman
jkingsman / github-remove-diff-markers-bookmarklet.js
Last active June 7, 2017 09:02
Remove the '+' and '-' from GitHub diff view; helpful when copying large swaths of code from a diff.
javascript:(function(){for(var elements=document.getElementsByClassName("blob-code-inner"),i=0;i<elements.length;i++)(elements[i].parentNode.classList.contains("blob-code-addition")||elements[i].parentNode.classList.contains("blob-code-deletion"))&&(elements[i].innerHTML=elements[i].innerHTML.substring(1));})();