Skip to content

Instantly share code, notes, and snippets.

View notiv-nt's full-sized avatar

Mikhail Novikov notiv-nt

View GitHub Profile
@notiv-nt
notiv-nt / settings.json
Created December 13, 2021 10:25
editor.unicodeHighlight.allowedCharacters
"editor.unicodeHighlight.allowedCharacters": {
"б": true,
"о": true,
"е": true,
"Ѕ": true,
"І": true,
"Ј": true,
"А": true,
"В": true,
"Е": true,
@notiv-nt
notiv-nt / gist:b601e99579c8c965490f285e9f2715f8
Created May 28, 2020 13:58
Karabiner-Elements Remap capslock to control-option-7
{
"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"
@notiv-nt
notiv-nt / gist:5a3434f278f825c907500258700f33fc
Created November 6, 2019 18:06
Terminus top dark themes
dark-pastel
paul-millr
pro
argonaut
dracula
vibrant-ink
docker system prune -fa && docker volume prune -f && docker system df
@notiv-nt
notiv-nt / index.html
Created October 11, 2019 06:49
feathersjs
yarn add @feathersjs/express @feathersjs/feathers @feathersjs/socketio
@notiv-nt
notiv-nt / gulpfile.js
Last active October 21, 2019 08:49
Gulp javascript task — rollup version
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');
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 21:18
Service worker font-display polyfill
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 December 30, 2018 21:15
Gulp javascript task — parcel version
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 December 30, 2018 21:10
Gulp javascript task — browserify version
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']