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 gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| var browserSync = require('browser-sync').create(); | |
| var notify = require('gulp-notify'); | |
| var autoprefixer = require('autoprefixer'); | |
| var mqpacker = require('css-mqpacker'); | |
| var csswring = require('csswring'); | |
| var plumber = require('gulp-plumber'); | |
| var postcss = require('gulp-postcss'); | |
| var prettify = require('gulp-jsbeautifier'); |
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
| /* Unless said otherwise, logic is min-width */ | |
| /* Hard column width */ | |
| @function colw($n, $gutter: $gutter) { | |
| @return $n * ($col + $gutter); | |
| } | |
| /* Strip units */ | |
| @function strip($value) { | |
| @return $value / ($value * 0 + 1); |
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
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.fontFamily": "Input", | |
| "editor.fontSize": 14, | |
| "terminal.integrated.fontLigatures": true, | |
| "terminal.integrated.fontSize": 14, | |
| "editor.wordWrap": "on", | |
| "editor.minimap.enabled": true, | |
| "editor.minimap.renderCharacters": false, | |
| "editor.fontLigatures": true, |
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 _getRefreshRate() { | |
| const rafPromise = _ => new Promise(requestAnimationFrame); | |
| const idlePromise = _ => new Promise(requestIdleCallback); | |
| let f1, f2; | |
| return new Promise(resolve => { | |
| idlePromise() | |
| .then(_ => rafPromise()) | |
| .then(frame => {f1 = frame; return rafPromise();}) |
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
| "workbench.experimental.colorCustomizations": { | |
| "terminalAnsiBlack": "#282a36", | |
| "terminalAnsiRed": "#ff5c57", | |
| "terminalAnsiGreen": "#5af78e", | |
| "terminalAnsiYellow": "#f3f99d", | |
| "terminalAnsiBlue": "#57c7ff", | |
| "terminalAnsiMagenta": "#ff6ac1", | |
| "terminalAnsiCyan": "#9aedfe", | |
| "terminalAnsiWhite": "#eff0eb", | |
| "terminalAnsiBrightBlack": "#686868", |
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
| class Foo extends Component { | |
| shouldComponentUpdate(nextProps, nextState) { | |
| componentWillReceiveProps(nextProps, nextState) { | |
| this.props // previous props | |
| this.state // previous state | |
| } | |
| componentWillMount() { | |
| componentDidMount() { | |
| componentDidUpdate() { | |
| componentWillUnmount() { |
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 { oneLineTrim } from 'common-tags'; | |
| // Create wrapper. | |
| const htmlInner = document.createElement('html'); | |
| const htmlOuter = document.documentElement; | |
| htmlInner.id = 'i-html-wrapper'; | |
| // Setup classes and styles. | |
| htmlInner.className = htmlOuter.className; | |
| htmlOuter.className = 'iOSfix'; | |
| // const height = window.innerHeight; |
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
| freedom of speech | |
| catholic | |
| muslim | |
| christian | |
| democratic | |
| Fox news | |
| BBC | |
| rightwing | |
| right-wing | |
| right wing |
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 sindreList = [ | |
| '#alternativefact', | |
| '#alternativefacts', | |
| '@realdonaldtrump', | |
| 'attorney general', | |
| 'bomb', | |
| 'bombs', | |
| 'brexit', | |
| 'climate change', |
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
| // ============================================================== | |
| // Compensates the scrollbar width on fixed-position elements | |
| // ============================================================== | |
| class ScrollbarCompensate { | |
| constructor() { | |
| this.itemsToCompensate = [ | |
| document.querySelector('body'), | |
| document.querySelector('.menu-btn-container'), | |
| ]; |
OlderNewer