import until from 'path/to/until'
import { shallow } from 'enzyme'
const EnhancedFoo = compose(
connect(...),
withHandlers(...),
withContext(...)
This file contains 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
#!/bin/bash | |
YOU=`whoami` | |
CWD=$(cd $(dirname $0);pwd) | |
# Create mout storage directory if not exists | |
if [ ! -d "$HOME/perfstore/graphite" ]; then | |
echo "creating directory: $HOME/perfstore/graphite..." | |
mkdir -p $HOME/perfstore/graphite | |
fi |
This file contains 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
/** | |
* Mouse wheel polyfill inspired by cross-browser example on mdn wiki. | |
* | |
* It supports relatively modern browsers, which already support addEventListener and Array forEach methods. | |
* Effectively it is targeting webkit based browsers. I didn't have opportunity to test it on old Firefox. | |
* Method addEventListener is supported in IE9, which already supports wheel event. I guess one could combine | |
* it with polyfill for addEventListener to have support in IE 6-8. In that case one would have to also wrap | |
* all addEventListener methods provided by the polyfill (last block below). | |
* | |
* @see https://developer.mozilla.org/en-US/docs/Web/Reference/Events/wheel?redirectlocale=en-US&redirectslug=DOM%2FMozilla_event_reference%2Fwheel#Listening_to_this_event_across_browser |
This file contains 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
/** | |
* @constructor | |
* @param {Object} config A valid configuration. | |
*/ | |
var Photos = function(config) { | |
var core = require("./core")(config), | |
logger = require('log4js')(config.log4js).getLogger("node-foursquare.Photos"); | |
/** | |
* Retrieve a photo from Foursquare. |