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
{ "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
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]); | |
} |
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 attachRounder (element) { | |
window.addEventListener('resize', () => makeRound(element)); | |
makeRound(element); | |
} | |
function makeRound (element) { | |
let transform = window.getComputedStyle(element, null).getPropertyValue('transform'); | |
if (transform.indexOf('matrix') !== -1) { | |
element.style.transform = transform.replace(/[\d\.]+/gi, function (match) { return Math.round(match);}); | |
} |
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
hello = () => { | |
var lala = 1; | |
something(); | |
} | |
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
short_open_tag=On | |
error_reporting = E_ALL & ~E_NOTICE; |
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
# Misc related to npm and webpack | |
node_modules | |
build | |
dist | |
webpack-stats.json | |
npm-debug.log | |
# Sublime related - just in case | |
################### | |
sublime-* |
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
import Rebase from 're-base'; | |
const endPoint = 'actions'; | |
const firebaseUrl = 'https://firesync.firebaseio.com'; | |
const client = String(Date.now() + Math.random() * 100); | |
const data = []; | |
let initiated = false; | |
const base = Rebase.createClass(firebaseUrl); | |
function firesync (store) { |