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 / 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 / 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 / custom_recipes.xml
Created June 9, 2015 01:59
Custom recipes for 7 Days to Die
<!-- Custom Recipes -->
<recipe name="scrapIron" count="3" craft_time="3">
<ingredient name="ingotIron" count="1" grid="-2, -2" />
</recipe>
<recipe name="moldyBread" count="2" scrapable="True" craft_time="2">
<ingredient name="shamSandwich" count="1" grid="0, 0" />
</recipe>
@daytonn
daytonn / class-method-definition.js
Created February 19, 2015 20:38
CWCPOOJS - class method definition
function Person(attributes) {
this.firstName = attributes.firstName;
this.lastName = attributes.lastName;
this.age = attributes.age;
this.address = attributes.address;
}
Person.marry = function(bride, groom) {
bride.spouse = groom;
groom.spouse = bride;
@daytonn
daytonn / correct-instance-method-definition.js
Last active August 29, 2015 14:15
CWCPOOJS - correct instance method definition
function Person(attributes) {
this.firstName = attributes.firstName;
this.lastName = attributes.lastName;
this.age = attributes.age;
this.address = attributes.address;
}
Person.prototype.sayHello = function() {
console.log("Hi, my name is " + this.firstName + ". I live in " + this.address.city + ", " + this.address.state + " on " + this.address.street + ".");
};
@daytonn
daytonn / method-properties.js
Created February 19, 2015 20:02
CWCPOOJS - naive method definition
// DO NOT define instance methods in this way
function Person(attributes) {
this.firstName = attributes.firstName;
this.lastName = attributes.lastName;
this.age = attributes.age;
this.address = attributes.address;
this.sayHello = function() {
console.log("Hi, my name is " + this.firstName + ". I live in " + this.address.city + ", on " + this.address.street + ".")
};
@daytonn
daytonn / bad-instantiation.js
Last active August 29, 2015 14:15
CWCPOOJS - bad instantiation
function Person(attributes) {
this.firstName = attributes.firstName;
this.lastName = attributes.lastName;
this.age = attributes.age;
this.address = attributes.address;
}
var bob = Person({
firstName: "Bob",
lastName: "Ject",
@daytonn
daytonn / class.js
Last active August 29, 2015 14:15
CWCPOOJS - class
function Person(attributes) {
this.firstName = attributes.firstName;
this.lastName = attributes.lastName;
this.age = attributes.age;
this.address = attributes.address;
}
var bob = new Person({
firstName: "Bob",
lastName: "Ject",
@daytonn
daytonn / oject-with-methods.js
Created February 19, 2015 19:26
CWCPOOJS - object with methods
var person = {
firstName: "Bob",
lastName: "Ject",
age: 33,
address: {
street: "123 Memory Ln",
apt: "0x7fff9575c05f",
zip: "01101",
city: "Browser Town",
state: "Mozilla"