Skip to content

Instantly share code, notes, and snippets.

{
"title": "Caps Lock Enhanced Reduced",
"author": "Ilnur Khalilov ([email protected])",
"homepage": "",
"hostpage": "",
"manual": "",
"import_url": "",
"rules": [
{
"description": "CapsLock to Hyper/Escape",
@i11v
i11v / list.md
Created November 14, 2016 08:35
Awesome list

Awesome lists

UI kits

The official front-end framework for building experiences that fit seamlessly into Office and Office 365.

@i11v
i11v / webpack.config.js
Created October 17, 2015 22:12 — forked from mistakster/webpack.config.js
Webpack configuration file
/**
* Build for production:
* $ NODE_ENV=production webpack
*
* Build for staging or development mode
* $ webpack
*
* Run app server in dev mode and use Hot Module Replacement
* $ NODE_ENV=webpack nodemon --watch ./app index.js
*
@i11v
i11v / ten-thousand
Created November 6, 2014 20:54
Ten thousand symbols
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nibh turpis, dignissim ut interdum id, pharetra id neque. Nunc non volutpat lectus, in consequat augue. Nam id varius dui. Etiam tellus enim, iaculis sit amet erat nec, tristique rutrum mauris. Etiam pulvinar a sapien vel ullamcorper. Aenean elementum, mi a ultricies tincidunt, orci lacus tristique felis, sit amet vehicula dui est non odio. Pellentesque laoreet mi dolor, in porttitor metus vulputate non. Proin mollis lacus a viverra pellentesque.Duis posuere dui ac magna commodo ultricies. Vivamus eget ullamcorper odio. Donec luctus tempus scelerisque. Proin non auctor ante. In feugiat elementum aliquet. Curabitur ornare nisl sed dui aliquet rhoncus. Nulla efficitur et elit non vehicula. Morbi tortor ligula, fermentum vitae ipsum eu, gravida maximus dolor. Praesent eu maximus velit. Aenean rutrum consequat erat non rhoncus.Mauris ac turpis egestas ante suscipit suscipit vitae tincidunt mauris. Etiam laoreet risus id venenatis maximus. Pellentesque
/*
* Add a shuffle function to Array object prototype
* Usage :
* var tmpArray = ["a", "b", "c", "d", "e"];
* tmpArray.shuffle();
*/
Array.prototype.shuffle = function (){
var i = this.length, j, temp;
if ( i == 0 ) return;
while ( --i ) {

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@i11v
i11v / .vimrc
Last active December 10, 2015 02:58
" --------------------------
" Basic preferences
" --------------------------
" Disable compability with vi
set nocompatible
" Set backup dirs
set dir=~/tmp
set bdir=~/.backup
@i11v
i11v / jquery.fn.serializeObject.js
Last active December 10, 2015 01:38
This function extends jQuery by serializeObject method. Argument — form data, returns object.
;(function ($) {
$.fn.serializeObject = function () {
var obj = {},
arr = this.serializeArray();
$.each(arr, function () {
if (typeof obj[this.name] !== "undefined") {
if (!obj[this.name].push) {
obj[this.name] = [obj[this.name]];
}
@i11v
i11v / gist:4359829
Created December 22, 2012 16:43 — forked from hzlzh/gist:3128038
<snippet>
<!-- put this file in /packages/User/<Folder Name>/console_log.sublime-snippet then restart your Sublime Text 2 -->
<content><![CDATA[console.log($1);$0]]></content>
<tabTrigger>co</tabTrigger>
<scope>text.html,source.js</scope>
<description>console.log()</description>
</snippet>
<snippet>
<!-- put this in another file /packages/User/<Folder Name>/console_dir.sublime-snippet then restart your Sublime Text 2 -->