Skip to content

Instantly share code, notes, and snippets.

View daytonn's full-sized avatar
💀
Trying to figure out why I would care to add a status to github

Dayton Nolan daytonn

💀
Trying to figure out why I would care to add a status to github
View GitHub Profile
@daytonn
daytonn / .colors
Created January 28, 2014 21:50
Bash Color functions
# Colors
end="\033[0m"
black="\033[0;30m"
blackb="\033[1;30m"
white="\033[0;37m"
whiteb="\033[1;37m"
red="\033[0;31m"
redb="\033[1;31m"
green="\033[0;32m"
greenb="\033[1;32m"
@daytonn
daytonn / snes_roms.txt
Created November 1, 2012 16:26
SNES Roms
2020 Super Baseball (U)
3 Ninjas Kick Back (U)
7th Saga, The (U) [!]
A.S.P. Air Strike Patrol (U)
AAAHH!!! Real Monsters (U)
ABC Monday Night Football (U)
ACME Animation Factory (U)
AD&D - Eye of the Beholder (U)
ActRaiser (U) [!]
ActRaiser 2 (U) [!]
@daytonn
daytonn / root_only.sh
Created March 12, 2011 17:28
shell script to check for root user
ROOT_UID=0
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "Must be root to run this script."
exit $E_NOTROOT
fi
@daytonn
daytonn / keybase.md
Created December 18, 2019 16:13
keybase.md

Keybase proof

I hereby claim:

  • I am daytonn on github.
  • I am daytonnolan (https://keybase.io/daytonnolan) on keybase.
  • I have a public key ASD101iBRMjef4Q1hrrrdzTSwBw72XjomT5DGA2cNaZLbwo

To claim this, I am signing this object:

@daytonn
daytonn / iTerm triggers.md
Last active March 15, 2018 11:13
iTerm triggers for ruby happiness

iTerm Triggers

  • ^diff.+$ -- Highlight Text (Whatever Background)
  • ^diff.+$ -- Highlight Text (Whatever Foreground)
  • uninitialized\sconstant\s([\w:]+) -- Highlight Text (White on Red)
  • undefined\slocal\svariable\sor\smethod\s(.+)'` -- Highlight Text (White on Red)
  • undefined\smethod\s(.+)'` -- Highlight Text (White on Red)
  • no\simplicit\sconversion\sof\s(\w+)\sinto\s(\w+) -- Highlight Text (White on Red)
  • \?(.+)?'?:?\swrong\snumber\sof\sarguments\s` -- Highlight Text (White on Red)
  • \(\d+\sfor\s\d[\.\+\d]?\) -- Highlight Text (Red on White)
@daytonn
daytonn / Label Process Abstractions.md
Last active February 9, 2018 20:47
Label Process Abstractions

Order (WeeklyBasket)

  • needs_binder?
  • shipping_region
  • transit_days
  • zip_code
  • shipping_service_type
  • meals ??

IceProfile

@daytonn
daytonn / jskit-presentation.md
Last active December 1, 2017 14:44
JSKit Presentation

JSKit

The problems:

  1. you want to add some javscript to a specific page
  2. you need to load that specific script after all the libraries are loaded
  3. you want to keep your application.js file at the bottom of the body
  4. you want to keep those page specific scripts from becoming one giant ball of immediately executed code
  5. you want to be able to test this code
@daytonn
daytonn / bindAll.js
Created November 26, 2013 19:33
bind all implementation
var obj = {
id: 1,
whoami: function() {
return this.id;
}
};
function callExternally(callback) {
this.id = 99;
return callback();
@daytonn
daytonn / spec_helper.js
Last active December 22, 2015 13:19
Custom jasmine matchers
beforeEach(function() {
this.addMatchers({
toBeTrue: function() {
return this.actual === true;
},
toBeFalse: function() {
return this.actual === false;
},
@daytonn
daytonn / composed_event_callback_handler.js
Created July 1, 2013 15:31
Composed event callback handler
function togglePanel() {
$(".panel").slideToggle();
}
function doOtherStuff() {
// other stuff is done here
}
function handleArrowClick() {
togglePanel();