Skip to content

Instantly share code, notes, and snippets.

@enriclluelles
enriclluelles / ext.vim
Last active August 29, 2015 14:11 — forked from sjl/ext.vim
" run command
" no stdin
" output displayed in "Press enter to continue" style
" current buffer untouched
:!uptime
" run command
" pipe range of text to command on stdin
" output replaces the range in the current buffer
:RANGE!grep foo
@enriclluelles
enriclluelles / dabblet.css
Created September 4, 2013 15:14
Rounded arrows with CSS (SO)
/**
* Rounded arrows with CSS (SO)
* http://stackoverflow.com/questions/12461441/rounded-arrows-with-css/12461582#12461582
*/
body {
padding-top: 5em;
background: linear-gradient(left, plum 50%, transparent 50%);
background-size: 5.1em 1px
}
.arrow {
@enriclluelles
enriclluelles / gist:1843905
Created February 16, 2012 10:31 — forked from remy/gist:350433
Storage polyfill
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () {
var Storage = function (type) {
function createCookie(name, value, days) {
var date, expires;
if (days) {
date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();