This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
COLOR_NONE="\[\e[0m\]" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var Dom = YAHOO.util.Dom, | |
Event = YAHOO.util.Event; | |
var myEditor = new YAHOO.widget.Editor('editor', { | |
height: '300px', | |
width: '600px', | |
dompath: true | |
}); | |
myEditor.on('toolbarLoaded', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code for adding gist BBCode tags to phpBB | |
BBCode Usage: | |
[gist={NUMBER}]{SIMPLETEXT}[/gist] | |
HTML Replacement | |
<h3>{SIMPLETEXT}</h3> | |
<script src="http://gist.github.com/{NUMBER}.js"></script> | |
<a href="http://gist.github.com/{NUMBER}">Click here to see the revision history on this Gist.</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPosition(el) { | |
if (document.documentElement.getBoundingClientRect) { | |
//They have getBoundingClientRect | |
var box = el.getBoundingClientRect(); | |
if (isIE) { | |
//But we have to do something special for IE | |
} | |
} else { | |
//Other Browsers here.. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPosition(el) { | |
if (el.getBoundingClientRect) { | |
//They have getBoundingClientRect | |
var box = el.getBoundingClientRect(); | |
} else { | |
//Other Browsers here.. | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPosition(el) { | |
if (el.getBoundingClientRect) { | |
//They have getBoundingClientRect | |
var box = el.getBoundingClientRect(); | |
if (typeof arguments.callee.offset != "number") { | |
var temp = document.createElement("div"); | |
temp.style.cssText = "position:absolute;top:0;left:0"; | |
document.body.appendChild(temp); | |
arguments.callee.offset = -temp.getBoundingClientRect().top; | |
document.body.removeChild(temp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
"set compatible | |
" Dav's Custom VIM Settings | |
" ------------------------- | |
" Set no wrapping of lines | |
set nowrap | |
set number | |
let g:explVertical=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var button = buttonReference; //This is a reference to your button | |
var el = document.createElement('span'); | |
var el2 = document.createElement('span'); | |
el.appendChild(el2); | |
button.parentNode.replaceChild(el, button); |
OlderNewer