Skip to content

Instantly share code, notes, and snippets.

Avatar

Mikhail Novikov notiv-nt

  • Russia
View GitHub Profile
@notiv-nt
notiv-nt / settings.json
Created Dec 13, 2021
editor.unicodeHighlight.allowedCharacters
View settings.json
"editor.unicodeHighlight.allowedCharacters": {
"б": true,
"о": true,
"е": true,
"Ѕ": true,
"І": true,
"Ј": true,
"А": true,
"В": true,
"Е": true,
@notiv-nt
notiv-nt / gist:b601e99579c8c965490f285e9f2715f8
Created May 28, 2020
Karabiner-Elements Remap capslock to control-option-7
View gist:b601e99579c8c965490f285e9f2715f8
{
"title": "Change caps_lock key to control-option-7",
"rules": [
{
"description": "Change caps_lock key to control-option-7",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock"
View gist:5a3434f278f825c907500258700f33fc
dark-pastel
paul-millr
pro
argonaut
dracula
vibrant-ink
View gist:92e7c73ffe68f99eb03910b5931573ff
docker system prune -fa && docker volume prune -f && docker system df
View index.html
yarn add @feathersjs/express @feathersjs/feathers @feathersjs/socketio
@notiv-nt
notiv-nt / gulpfile.js
Last active Oct 21, 2019
Gulp javascript task — rollup version
View gulpfile.js
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');
View svg-sprite cli
svg-sprite -s --symbol-sprite='sprite.svg' --symbol-dest=public/assets --shape-id-generator='icon-%s' source/icons/*.svg
@notiv-nt
notiv-nt / sw.js
Created May 20, 2019
Service worker font-display polyfill
View sw.js
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) {
@notiv-nt
notiv-nt / gulpfile.js
Created Dec 30, 2018
Gulp javascript task — parcel version
View gulpfile.js
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({
@notiv-nt
notiv-nt / gulpfile.js
Created Dec 30, 2018
Gulp javascript task — browserify version
View gulpfile.js
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']