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
// CodeMirror, copyright (c) by Marijn Haverbeke and others | |
// Distributed under an MIT license: http://codemirror.net/LICENSE | |
/** | |
* Supported keybindings: | |
* | |
* Motion: | |
* h, j, k, l | |
* gj, gk | |
* e, E, w, W, b, B, ge, gE |
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
'use strict'; | |
function List(integer, symbols) { | |
var defaults = { | |
integer: 0, | |
symbols: 'abcdefghiklmnopqrstvxyz0123456789'.split('') | |
} |
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(arr, cache) { | |
var wl = window.localStorage; | |
var insert = function(fileContent, elem) { | |
var el = document.createElement(elem); | |
el.innerHTML = fileContent; | |
document.querySelector('head').appendChild(el); | |
}; |
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
let PRODUCTION_MODE = process.argv.indexOf('--minify') !== -1; | |
const gulp = require('gulp'); | |
const _ = require('gulp-load-plugins')(); | |
const fs = require('fs'); | |
gulp.task('javascript', () => { | |
const browserify = require('browserify'); | |
const tasks = ['./source/js/index.js', 'source/js/sw.js'] |
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
let PRODUCTION_MODE = process.argv.indexOf('--minify') !== -1; | |
const gulp = require('gulp'); | |
const _ = require('gulp-load-plugins')(); | |
gulp.task('javascript', () => { | |
const sources = ['./source/js/index.js', 'source/js/sw.js'] | |
gulp.src(sources, { read: false }) | |
.pipe(_.parcel({ |
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
self.addEventListener('fetch', function(event) { | |
// Polyfill | |
if (/https:\/\/fonts.googleapis.com\/css/.test(event.request.url)) { | |
return event.respondWith(fontDisplayPolyfill(event.request)); | |
} | |
return event; | |
}); | |
async function fontDisplayPolyfill(request) { |
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
svg-sprite -s --symbol-sprite='sprite.svg' --symbol-dest=public/assets --shape-id-generator='icon-%s' source/icons/*.svg |
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 gulp = require('gulp'); | |
gulp.task('js', async () => { | |
const rollup = require('rollup'); | |
const replace = require('rollup-plugin-replace'); | |
const postcss = require('rollup-plugin-postcss'); | |
const resolve = require('rollup-plugin-node-resolve'); | |
const babel = require('rollup-plugin-babel'); | |
const { terser } = require('rollup-plugin-terser'); | |
const commonjs = require('rollup-plugin-commonjs'); |
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
yarn add @feathersjs/express @feathersjs/feathers @feathersjs/socketio |
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
docker system prune -fa && docker volume prune -f && docker system df |
OlderNewer