Skip to content

Instantly share code, notes, and snippets.

View nicohq's full-sized avatar

Nico nicohq

  • Kyiv, Ukraine
  • 06:21 (UTC +03:00)
View GitHub Profile
@nicohq
nicohq / Kottans.md
Last active August 29, 2015 14:18
Kottans.Fin
{
"name": "browserify_babelify",
"version": "1.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "watchify src/app.js -d -o bundle.js -v [ babelify --presets [es2015] ]",
"build": "browserify src/app.js -t [ babelify --presets es2015 ] | uglifyjs -mco bundle.js"
},
@nicohq
nicohq / git tips.md
Last active September 20, 2016 08:16
Git tips

To delete all local branches that are already merged into the currently checked out branch exclude master, stage branches
git branch --merged | egrep -v "(^\*|master|stage)" | xargs git branch -d

See how many lines of code you have written today
git diff --shortstat "@{0 day ago}"

Uncommit something (3 commit back)
git reset --soft HEAD~3

@nicohq
nicohq / Rollup conf
Created May 25, 2017 08:08
Rollup config
import builtins from 'rollup-plugin-node-builtins';
import babel from 'rollup-plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import uglify from 'rollup-plugin-uglify';
import { minify } from 'uglify-js-harmony';
const isProd = process.env.NODE_ENV === 'prod';
export default {
entry: 'app.js',