This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * __series | |
| * Given an array of functions, it will call every function, | |
| * once at a time, sequentially. | |
| * Every function will have a trigger function as its last argument, | |
| * that should be called when the function is done. | |
| * If arguments are given to this trigger function, those will be passed | |
| * to the next function. | |
| * | |
| * @example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(window){ | |
| var EVENT_EXISTS = 'GlobalEvents: Event already exists.'; | |
| var eventIsRunning, | |
| _eventStack, | |
| _findByName, | |
| stackEvent, | |
| removeEvent, | |
| eventListener, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // based on this blog post: | |
| // http://druss.co/2016/04/export-all-workouts-from-sports-tracker/ | |
| // then based on this gist implementation: | |
| // https://gist.github.com/anonymous/9abc8d9c376bbc6aa853b477a50e8932 | |
| // | |
| // I've changed it so you don't need to do the "Load More Workouts" (it is downloaded through the API) | |
| // Added possible customizations (easy to switch between curl and powershell) | |
| // Get the url to use from the current document | |
| // Fix the token parsing, it failed because there is no trailing ';' | |
| // Added a # token at the end of the download command so you don't need to post-process when using firefox |
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ParallaxManager, ParallaxPart; | |
| ParallaxPart = (function() { | |
| function ParallaxPart(el) { | |
| this.el = el; | |
| this.speed = parseFloat(this.el.getAttribute('data-parallax-speed')); | |
| this.maxScroll = parseInt(this.el.getAttribute('data-max-scroll')); | |
| } | |
| ParallaxPart.prototype.update = function(scrollY) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 14, | |
| // font family with optional fallbacks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The Monad design pattern functions | |
| // i.e. compose, bind, unit, lift | |
| // These are functions that are part of the design pattern's "interface" | |
| // Their implementation can change (well, maybe not `compose`) | |
| // but these function identifiers should be implemented | |
| // as other devs will use those identifiers as a common language | |
| // when discussing the Monad pattern | |
| // compose = returns a function that takes a data structure (accepted data structure argument is passed to `g` and then result of that is passed to `f`) |
OlderNewer