Skip to content

Instantly share code, notes, and snippets.

View JeffML's full-sized avatar
🏠
Barely working

Jeff Lowery JeffML

🏠
Barely working
View GitHub Profile
@JeffML
JeffML / menu.js
Last active January 7, 2017 14:01
icecream menu
var menu = {
iceCream: {min: 1, max: 2, values: ["CHOCOLATE", "STRAWBERRY", "VANILLA"]},
topping: {min: 0, max: 2, values: ["pineapple", "strawberry", "coconut flakes", "pecans"]},
syrup: {min:0, max: 1, values: ["chocolate", "marshmallow", "butterscotch", "maple"]}
}
swagger: '2.0'
info:
version: '1.0.0'
title: Swagger Petstore (Simple)
description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification
termsOfService: http://helloreverb.com/terms/
contact:
name: Swagger API team
email: [email protected]
url: http://swagger.io
@JeffML
JeffML / borken.groovy
Last active August 29, 2015 14:22
Example of using threaded Geb test for Broken Links
package tests
import static groovy.json.JsonOutput.*
import static org.junit.Assert.*
import geb.Browser
import java.util.concurrent.*
import org.junit.Before
import org.junit.Test
@JeffML
JeffML / js-inheritance
Created May 30, 2015 19:58
Javascript inheritance example, using Object.create(), ctors, and super method calls
/* refs:
* http://oli.me.uk/2013/06/01/prototypical-inheritance-done-right/
* http://davidshariff.com/blog/javascript-inheritance-patterns/
*/
"use strict";
function Human(name, gender) {
this.name = name;
this.gender = gender;
}