made with esnextbin
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
const shadow = myElement.createShadowRoot(); | |
const style = document.createElement('style'); | |
style.innerHTML = '@import url(PATH_TO_MY_CSS)'; | |
shadow.appendChild(style); |
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
<amp-ad width="300" height="250" | |
type="adman" | |
data-ws="17342" | |
data-s="300x250" | |
data-host="talos.adman.gr"> | |
</amp-ad> |
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
{ | |
"parser": "babel-eslint", | |
"ecmaFeatures": { | |
"jsx": true, | |
"modules": true, | |
"classes": true, | |
"generators": true, | |
"experimentalObjectRestSpread": true | |
}, |
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
{ "keys": ["alt+s"], "command": "reveal_in_side_bar"} |
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
{ | |
"bold_folder_labels": true, | |
"build_on_save": 0, | |
"color_scheme": "Packages/User/Tomorrow-Night.tmTheme", | |
"close_windows_when_empty": true, | |
"draw_indent_guides": true, | |
"caret_style": "phase", | |
"fallback_encoding": "Greek (ISO 8859-7)", | |
"folder_exclude_patterns": | |
[ |
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
[ '20', '3', '30', '10' ].sort(function (a, b) { | |
return a == b ? 0 : (a < b ? -1 : 1); | |
})[0]; | |
[ 20, 3, 30, 10 ].sort(function (a, b) { | |
return a == b ? 0 : (a < b ? -1 : 1); | |
})[0]; |
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
d3.min = function(array, f) { | |
var i = -1, n = array.length, a, b; | |
if (!f) { | |
for (var y = 0; parseInt(array[y]); y++) {} | |
if (y === array.length) return Math.min.apply(Math, array); | |
} | |
// Continue existing logic below |
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
subClass = function (source, prototype) { | |
var dummy = new source.constructor; | |
for (var key in prototype) { | |
dummy[key] = prototype[key]; | |
} | |
source.__proto__ = dummy; | |
} |
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 Webpack = require('webpack'); | |
var path = require('path'); | |
var entry = require('./webpack-entry'); | |
// Prepend local dev server | |
for (var i in entry) { | |
entry[i] = ['webpack-dev-server/client?http://local.bestprice.gr:3000', 'webpack/hot/dev-server'] | |
.concat(entry[i]); | |
} |