Skip to content

Instantly share code, notes, and snippets.

View SuperOl3g's full-sized avatar

Oleg Lykasov SuperOl3g

  • Barcelona, Spain
View GitHub Profile
const postcss = require('postcss');
const PREFIX = 'html ';
const SUFFIX = '';
module.exports = postcss.plugin('postcss-increase-weight', () =>
css =>
css.walkRules(rule => {
rule.selectors = rule.selectors.map(
selector => `${PREFIX}${selector}${SUFFIX}`
@SuperOl3g
SuperOl3g / deleteOutDatedBrunches.bash
Last active February 14, 2017 12:11
bash script for deleting outdated git brunches
cd ~/tinkoff-portal-web/
for k in $(git branch | sed /\*/d); do
if [ -z "$(git log -1 --since='2 week ago' -s $k)" ]; then
git branch -D $k
fi
done
'use strict';
const gulp = require('gulp'),
seq = require('run-sequence'),
watch = require('gulp-watch'),
browserSync = require('browser-sync').create(),
rimraf = require('rimraf'),
rename = require('gulp-rename'),
notify = require("gulp-notify"),
sourcemaps = require('gulp-sourcemaps'),