Skip to content

Instantly share code, notes, and snippets.

View DanielFGray's full-sized avatar

Daniel Gray DanielFGray

View GitHub Profile
Array.range = function(start, count) {
return Array.apply(null, { length: count })
.map(function(v,i){
return start + i;
});
}
Array.prototype.clone = function() {
return this.slice(0);
};
@DanielFGray
DanielFGray / pomf
Created November 13, 2013 23:07 — forked from KittyKatt/pomf
#!/usr/bin/env bash
# pomf.se uploader
# requires: curl
dest_url='http://pomf.se/upload.php'
return_url='http://a.pomf.se'
if [[ -n "${1}" ]]; then
file="${1}"
if [ -f "${file}" ]; then
let g:airline#themes#dan#palette = {}
function! s:generate()
let s:file = airline#themes#get_highlight('Constant')
let s:N1 = airline#themes#get_highlight2(['PmenuSel', 'fg'], ['User3', 'bg'])
let s:N2 = airline#themes#get_highlight('Pmenu')
let s:N3 = airline#themes#get_highlight('CursorLine')
let g:airline#themes#dan#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3, s:file)