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 { createStore } from 'redux'; | |
const increment = () => ({ | |
type: 'INCREMENT', | |
}); | |
const decrement = () => ({ | |
type: 'DECREMENT', | |
}); |
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
const psi = require('psi'); | |
const url = 'https://github.com/GoogleChromeLabs/psi'; | |
(async () => { | |
const data = await psi(url, { | |
startegy: 'desktop', | |
}); | |
console.log(`Speed score: ${data.ruleGroups.SPEED.score}`); | |
})(); |
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
const deasync = require('deasync-promise'); | |
const postcss = require('postcss'); | |
const postcssrc = require('postcss-load-config'); | |
module.exports = ({ ctx }) => { | |
return { | |
visitor: { | |
TaggedTemplateExpression({ node }, { file }) { | |
if (node.tag.name !== 'css') return; |
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
function global(opts) { | |
return postcss.plugin('postcss-global', () => { | |
return (root, result) => { | |
// console.log(root); | |
// console.log(result); | |
// for (decl of result.nodes) { | |
// console.log(decl); | |
// } |
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 resolve from 'rollup-plugin-node-resolve'; | |
import svelte from 'rollup-plugin-svelte'; | |
import babel from 'rollup-plugin-babel'; | |
import postcss from 'postcss'; | |
import postcssrc from 'postcss-load-config'; | |
import syntax from 'postcss-syntax'; | |
import env from 'postcss-preset-env'; | |
import { promises as fs } from 'fs'; | |
import { sync as rimraf } from 'rimraf'; | |
import { createFilter } from 'rollup-pluginutils'; |
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 resolve from 'rollup-plugin-node-resolve'; | |
import svelte from 'rollup-plugin-svelte'; | |
import babel from 'rollup-plugin-babel'; | |
import postcss from 'postcss'; | |
import postcssrc from 'postcss-load-config'; | |
import syntax from 'postcss-syntax'; | |
import env from 'postcss-preset-env'; | |
import { promises as fs } from 'fs'; | |
import { sync as rimraf } from 'rimraf'; | |
import { createFilter } from 'rollup-pluginutils'; |
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 { createFilter } from 'rollup-pluginutils'; | |
import { writeFile } from 'fs'; | |
import postcssrc from 'postcss-load-config'; | |
import postcss from 'postcss'; | |
export default (options = {}) => { | |
if (!options.include) options.include = '**/*.css'; | |
const filter = createFilter(options.include, options.exclude); |
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
// ASTRING | |
// ----------------------------------------------------------------------------- | |
// import acorn from 'acorn'; | |
// import astring from 'astring'; | |
// let code = 'let answer = 4 + 7 * 5 + 3;\n'; | |
// let ast = acorn.parse(code, { ecmaVersion: 6 }); |
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="map"> | |
<div class="container map__results"> | |
{% include "blocks/map-results/map-results.html" %} | |
</div> | |
<div id="map" class="map__inner" data-map-center="55.76, 37.64"></div> | |
</div> |
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
<template id="search-result-card"> | |
<div class="clinic-card-preview"> | |
<a class="clinic-card-preview__title-link" href=""> | |
<h3 class="clinic-card-preview__title"></h3> | |
</a> | |
<ul class="clinic-card-preview__location"> | |
<li class="clinic-card-preview__location-item clinic-card-preview__location-item_metro"></li> | |
<li class="clinic-card-preview__location-item clinic-card-preview__location-item_geo"></li> | |
</ul> |