- git-control
- git-diff-popup
- git-log
- merge-conflicts
- simple-drag-drop-text
- tab-switcher
- color-picker
- editorconfig
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
hr{ | |
margin: 1em 7em; | |
background: #333; | |
height: 1px; | |
border: none; | |
position: relative; | |
} | |
hr:before{ | |
content: "\2318"; /* ⌘ */ | |
position: absolute; |
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
var fs = require('fs'); | |
var path = require('path'); | |
var env = process.env.NODE_ENV || 'development'; | |
var config = JSON.parse(fs.readFileSync(__dirname + '/'+env+'.json')); | |
config.env = env; | |
config.root = path.dirname(require.main.filename); | |
module.exports = config; |
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
function encodeAsUrl_(params){ | |
return Object.keys(params).map(key => key + '=' + params[key]).join('&') | |
} | |
function handleResponce_(xhr, cb, errcb){ | |
return function () { | |
if (4 === xhr.readyState) { | |
if(xhr.status >= 200 && xhr.status < 400){ | |
cb(xhr); |
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
$small: 320px; | |
*[class^="col-"]{ | |
float: left; | |
box-sizing: border-box; | |
@media only screen and (max-width: $small) { | |
&.not-for-small{ | |
width: 100%; | |
float: none | |
} |
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
module.exports = { | |
ENTER: 13, | |
ESC: 27, | |
BACKSPACE: 8, | |
DELETE: 45, | |
TAB: 9, | |
LEFT_ARROW: 37, | |
UP_ARROW: 38, | |
RIGTH_ARROW: 39, |
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
/** | |
* @name module | |
* @global | |
* @description Synchronous module micro framework. | |
* Allows to define and require modules with only one variable (module) | |
* in global scope. | |
* @exports module | |
* @example | |
* module('my-module', function(require, module){ | |
* var lib = require('lib'); |
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
// -- Base -- // | |
// original from https://gist.github.com/amatiasq/2e4344792f28611fa499 | |
function curry(fn, length) { | |
length = length || fn.length; | |
return function currified() { | |
var args = [].slice.call(arguments); | |
if (args.length === 0) | |
return currified; |
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
/** | |
* function sliceRing make circular slice of array | |
* @param {Array} arr | |
* @param {Number} start | |
* @param {Number} length | |
* @returns {Array} | |
*/ | |
export default function sliceRing(arr, start, length) { | |
start = start % arr.length; |
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
new webpack.optimize.CommonsChunkPlugin({ | |
name: 'vendor', | |
filename: 'javascript/vendor.[chunkhash].js', | |
minChunks: module => { | |
return module.resource && | |
module.resource.indexOf(path.resolve(__dirname, '../node_modules')) === 0; | |
} | |
}) |
OlderNewer