Skip to content

Instantly share code, notes, and snippets.

<div class="schemes_group_parking">
<div style="clear:both;"></div>
<div class="scheme_parking"><a href="traffic-schemes/trees.shtml" class="hyperspan"></a>
<div class="scheme_head">
<div class="scheme_title_parking">Pavement parking ban</div>
<img class="scheme_image_parking" src="images/schemes/vas_s.jpg" alt="Speed cushions">
</div>
</div>
<div class="parking_scheme_text_middle">
<ul id="parking">
.header-image.cover {
margin: auto;
max-width: 800px;
}
.header-image-wrapper {
height: 500px !important;
}
"stick this in your ~/.vimrc
"could probably do this all on one line in the autocmd declaration but whatever
autocmd vimenter * call s:CheckForForgettingSudo()
function s:CheckForForgettingSudo()
if &readonly
echoerr "Use sudo beyotch!"
exit
endif
endfunction
{"graph": {"title":"Coins per Cause","datasequences":[{"title":"Causes","datapoints":[{"title":"Foo cause","value":21},{"title":"Bar cause","value":14},{"title":"Baz cause","value":10}]}]}}
@scrooloose
scrooloose / foo.js
Last active December 1, 2018 04:23
setInterval(
function() {
$.get('/admin/purchases', function(data) {
$('body').html(data);
});
},
10000
);
function! NERDTreeFindOrToggle()
if nerdtree#treeExistsForTab()
NERDTreeToggle
else
NERDTreeFind
endif
endfunction
"then map something to it with
"nnoremap <leader>n :call NERDTreeFindOrToggle()<cr>
if argc() == 0
echomsg "no files given, open nerdtree"
NERDTree
endif
@scrooloose
scrooloose / foo.vim
Last active December 12, 2015 12:48
"notes:
"syntastic looks for these functions:
"
" SyntaxCheckers_FILETYPE_NAME_IsAvailable()
" SyntaxCheckers_FILETYPE_NAME_GetLocList()
"
" In your code below, FILETYPE is verilog_systemverilog, and NAME is sv_compiler (i
" removed the "my " from the beginning).
"
" I have changed the function names to match, so it should work now :)
@scrooloose
scrooloose / chef.vim
Last active December 12, 2015 07:38 — forked from dougireton/chef.vim
function! SyntaxCheckers_chef_foodcritic_IsAvailable()
return executable('foodcritic')
endfunction
function! SyntaxCheckers_chef_foodcritic_GetLocList()
" let exe = expand(g:syntastic_ruby_exec)
" if !has('win32')
" let exe = 'RUBYOPT= ' . exe
" endif
"stick this in syntax_checkers/c/make.vim
"use let g:syntastic_c_checker="make" to activate it
function! SyntaxCheckers_c_make_IsAvailable()
return executable('make')
endfunction
function! SyntaxCheckers_c_make_GetLocList()
let makeprg = syntastic#makeprg#build({
\ 'exe': 'make',