Skip to content

Instantly share code, notes, and snippets.

View Drumsticks's full-sized avatar

Ryan Hinton Drumsticks

  • Hinton & Company, Inc.
View GitHub Profile
@Drumsticks
Drumsticks / gist:a64e89094aaef124187fa4abd157497e
Last active April 5, 2016 12:07
Hi Andrew, I messaged you on Twitter about an issue I found in your minimizer. I am defaulting function parameters that your minimizer does not like. An example and description of what I am describing is located at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters
function ExampleFunction(i = 1) {
...
}
@Drumsticks
Drumsticks / reStructFindValue
Last active August 29, 2015 14:22
reStructFindValue - Adding regular expresssion searching to structFindValue
/**
* @hint I search for patterns within a given
* @output false
*
* @target I am the target struct being searched.
* @pattern I am the pattern being searched.
* @scope I am the scope of the search: one or all.
* @path The path to the current target (for recursive calling). NOTE: This is used internally for recursion - this is NOT an expected argument to be passed in by the user.
*
* Reference: http://www.bennadel.com/blog/1635-restructfindvalue-adding-regular-expression-searching-to-structfindvalue.htm