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
window.addEvent('domready',function(){ | |
//Your code goes 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
(?x) | |
(?<one> # start of bracket 1 | |
\( # match an opening angle bracket | |
(?: | |
[^\(\)]++ # one or more non angle brackets, non backtracking | |
| | |
\g<one> # recurse to bracket 1 | |
)* | |
\) # match a closing angle bracket | |
) # end of bracket 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
Release | |
type | |
(ansi|ascii|pack|app|etc) | |
*Sauce data as individual columns | |
Artwork (alias to Release, filtered by type in artwork_types) | |
Pack (alias to Release, filtered by type in pack_types) | |
Artist | |
name |
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
#!/usr/bin/env ruby | |
class File | |
def self.svn? path | |
File.exists?(path + '/.svn/') | |
end | |
def self.git? path | |
File.exists?(path + '/.git/') | |
end | |
def self.hg? path | |
File.exists?(path + '/.hg/') |
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
/*Remove main scrollbars*/ | |
html,body{overflow:hidden !important;} | |
/*Background image*/ | |
body{ | |
background: #E6ECF6; | |
} | |
/*header*/ | |
.z2kAad{ |
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
<?php | |
// By Yuffster | |
function getDox($file) { | |
$docs = file_get_contents("docs/$file.md"); | |
$funcPatt = "/(.*?)?(Function|Method): (.*?) ?{(#.*?)}?\n/"; | |
$argPatt = "/^[-*1-9]+.*?\(\*(.*?)\*(, optional)?/"; | |
//This docs array will be for all the files and classes. |
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
#!/bin/bash | |
# http://gist.github.com/6731 | |
# author: Duane Johnson | |
# email: duane.johnson@gmail.com | |
# date: 2008 Jun 12 | |
# license: MIT | |
# | |
# Based on discussion at http://kerneltrap.org/mailarchive/git/2007/11/12/406496 | |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
require 'pp' | |
class HTMLDoc | |
attr_reader :html | |
attr_reader :doc | |
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
/*IE6 specific code to get hover working for any element*/ | |
#nav li, | |
.something-that-should-support-hover { | |
_azimuth: expression( | |
this.onmousedown = this.onmousedown || new Function("this.className += ' active'"), | |
this.onmouseup = this.onmouseup || new Function("this.className = this.className.replace('active','')"), | |
this.onmouseenter = this.onmouseenter || new Function("this.className += ' hover'"), | |
this.onmouseleave = this.onmouseleave || new Function("this.className = this.className.replace('hover','')"), | |
'inherit' | |
); |
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
* html .shimmed { | |
_azimuth: expression( | |
this.shimmed = this.shimmed || 'shimmed:'+this.insertAdjacentHTML('beforeBegin','<IFRAME style="filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);position:absolute;top:0px;left:0px;width:100%;height:100%" frameBorder=0 scrolling=no src="javascript:'+"''"+'"></IFRAME>'), | |
'inherit' | |
); | |
} |