Skip to content

Instantly share code, notes, and snippets.

View ActionScripted's full-sized avatar

Michael Thompson ActionScripted

View GitHub Profile
// Generated by CoffeeScript 1.6.3
/*
first.js -- kicking coffee's tires w/jquery
*/
(function() {
var $;
if (typeof jQuery !== "undefined" && jQuery !== null) {
# Make sure we've got jQuery and curb explosions if we don't
if jQuery?
$ = jQuery
$ ->
$('h1').animate {
padding: '50px'
}, 1000, (e) ->
alert 'asdf'
true
@ActionScripted
ActionScripted / gist:6719043
Last active December 24, 2015 00:49
Custom, colored status bar example that changes colors depending the file format (in this case, "dos" is bad).
" Colors taken from Solarized color scheme
let s:solr_grays = "ctermfg=240 ctermbg=235 guifg=#586E75 guibg=#073642"
let s:solr_warn = "ctermfg=230 ctermbg=160 guifg=#FDF6E3 guibg=#DC322F"
exe 'hi! User1 ' . s:solr_grays
exe 'hi! User2 ' . s:solr_grays
exe 'hi! User3 ' . s:solr_grays
exe 'hi! User4 ' . s:solr_grays
exe 'hi! User5 ' . s:solr_grays
exe 'hi! User6 ' . s:solr_grays