Skip to content

Instantly share code, notes, and snippets.

View mnowotnik's full-sized avatar

Michał Nowotnik mnowotnik

View GitHub Profile
@mnowotnik
mnowotnik / gulpfile.js
Last active September 17, 2015 14:43 — forked from soin08/gulpfile.js
Gulpfile.js to use with Django projects. Based on gulpfile.js from Google Web Starter Kit.
//Based on gulpfile.js from Google Web Starter Kit.
//https://github.com/google/web-starter-kit
'use strict';
// Include Gulp & Tools We'll Use
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');
@mnowotnik
mnowotnik / gulpfile.js
Last active September 17, 2015 14:28 — forked from mlouro/gulpfile.js
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var uglify = require('gulp-uglify');
var gulpif = require('gulp-if');
var exec = require('child_process').exec;
var notify = require('gulp-notify');
global !p
import string, vim
import textwrap
_snips_fns = {}
def py(*args):
import re
old_a = vim.eval('@a')
@mnowotnik
mnowotnik / curry.py
Last active August 29, 2015 14:17
python curry
# -*- coding: utf-8 -*-
#author: Michał Nowotnik 2015
#public domain
def curry(func):
argc = func.func_code.co_argcount
def wrap(*args, **kwargs):
if argc <= len(args)+len(kwargs):
return func(*args, **kwargs)
fncp = partial(wrap, *args, **kwargs)
Normal mode default mappings.
{lhs} {rhs}
-------- -----------------------------
<TAB> <Plug>(vimfiler_switch_to_other_window)
j <Plug>(vimfiler_loop_cursor_down)
k <Plug>(vimfiler_loop_cursor_up)
gg <Plug>(vimfiler_cursor_top)
<C-l> <Plug>(vimfiler_redraw_screen)
<Space> <Plug>(vimfiler_toggle_mark_current_line)
<S-Space> <Plug>(vimfiler_toggle_mark_current_line_up)