Skip to content

Instantly share code, notes, and snippets.

View runningskull's full-sized avatar

Juan Patten runningskull

View GitHub Profile
function! Kwbd(kwbdStage)
if(a:kwbdStage == 1)
let g:kwbdBufNum = bufnr("%")
let g:kwbdWinNum = winnr()
windo call Kwbd(2)
execute "bd! " . g:kwbdBufNum
execute "normal " . g:kwbdWinNum . ""
else
if(bufnr("%") == g:kwbdBufNum)
let prevbufvar = bufnr("#")
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@runningskull
runningskull / gist:1179709
Created August 29, 2011 23:35
Add FAQ's to SnapEngage: The List of Links
<div id="question-links" style="display:none"> <!-- the "display:none" is important -->
<ul class="question-list">
<li><a href="/questions/#question1">What is the answer to Question #1?</a></li>
<li><a href="/questions/#question2">But what is the answer to Question #2?</a></li>
<li><a href="/questions/#question3">And then what is the answer to Question #3?</a></li>
<li><a href="/questions/#question4">Finally, what is the answer to Question #4?</a></li>
</ul>
</div>
@runningskull
runningskull / gist:1179764
Created August 30, 2011 00:10
Add FAQ's to SnapEngage: The Javascript
$('.SnapABug_Button').live('click', function() { setTimeout(function() {
var style = {width: 695};
var $wp = $('#SnapABug_WP');
var $p = $('#SnapABug_P');
$p.animate(style, 250, 'easeInOutQuad');
$wp.animate($.extend(style, {left: $wp.offset().left - 100}), 250, 'easeInOutQuad');
$p.find('form').after($('#question-links').html());
@runningskull
runningskull / gist:1179776
Created August 30, 2011 00:23
Add FAQ's to SnapEngage: The Core CSS
.question-list {
width: 295px;
position: absolute;
right: 0;
padding: 20px;
}
@runningskull
runningskull / gist:1179780
Created August 30, 2011 00:26
Add FAQ's to SnapEngage: The Fancy CSS
/* CSS generated by SASS (http://sass-lang.com/) and Compass (http://compass-style.org/) */
.question-list {
width: 295px;
position: absolute;
right: 0;
margin-top: 30px;
padding: 20px 20px 20px 20px;
background: #555555;
border: 1px solid #444;
font-size: 0.875em;
here you can put the full terms and conditions!
let mapleader = ","
syn on
set nocompatible
set ai
set si
set et
set sts=4
set ts=4
" Fuzzy Finder
noremap <leader>ef :FufFile<cr>
noremap <leader>er :FufTag<cr>
noremap <leader>el :FufLine<cr>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.4.1/mootools-yui-compressed.js"></script>