| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
| import { StyleSheet } from 'aphrodite/no-important'; | |
| const globalSelectorHandler = (selector, _, generateSubtreeStyles) => { | |
| if (selector[0] !== "*") { | |
| return null; | |
| } | |
| return generateSubtreeStyles(selector.slice(1)); | |
| }; | |
| const globalExtension = {selectorHandler: globalSelectorHandler}; | |
| const { StyleSheet: globalStyleSheet, css: globalCss } = StyleSheet.extend([globalExtension]); |
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 profiler = require('v8-profiler'); | |
| setInterval(startProfiling, 30 * 1000); | |
| function startProfiling() { | |
| var stamp = Date.now(); | |
| var id = 'profile-' + stamp; | |
| // Use stdout directly to bypass eventloop | |
| fs.writeSync(1, 'Start profiler with Id [' + id + ']\n'); | |
| // Start profiling |
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 PhotoTracker = (function() { | |
| var _PT = {}; | |
| _PT.colorTracker = null; | |
| _PT.color_tracker_task = null; | |
| _PT.motionTracker = null; | |
| _PT.motion_tracker_task = null; | |
| _PT.color_visible = false; | |
| _PT.saw_color_pink = false; | |
| _PT.saw_color_red = false; |
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
| <div class="wrapper"> | |
| <div class="pie spinner"></div> | |
| <div class="pie filler"></div> | |
| <div class="mask"></div> | |
| </div> | |
| @mixin timer($item, $duration, $size, $color, $border, $hover: running) { | |
| #{$item}, #{$item} * { @include box-sizing(border-box); } |
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
| jQuery.fn.square = function(direction) { | |
| var _this = this; | |
| for(i=0; i<_this.length; i++) { | |
| if(direction == "width") { | |
| $(_this[i]).css('height', $(_this[i]).width()); | |
| } else { | |
| $(_this[i]).css('width', $(_this[i]).height()); | |
| } | |
| }; |
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
| // options: | |
| // { "interval": {time between pings in ms}, "maxTimespan": {acceptable lag between ping and pong}, "maxMisses": {number of misses before an error} } | |
| // events: | |
| // ping, pong(timespan), stop | |
| // miss(misses, error) - no pong in timespan | |
| // error(error) - number of misses > maxMisses or redis error | |
| var events = require("events"); | |
| var util = require("util"); |