Skip to content

Instantly share code, notes, and snippets.

window.addEvent('domready',function(){
//Your code goes here!!!
});
(?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
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
#!/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/')
@subtleGradient
subtleGradient / gmail.css
Created August 13, 2008 16:08
Gmail UserStyle
/*Remove main scrollbars*/
html,body{overflow:hidden !important;}
/*Background image*/
body{
background: #E6ECF6;
}
/*header*/
.z2kAad{
@subtleGradient
subtleGradient / docparser.php
Created August 17, 2008 04:34
Yuffster's MooTools CheatSheet Generator
<?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.
@subtleGradient
subtleGradient / git-info.sh
Created August 22, 2008 03:27
git-info by Duane Johnson
#!/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
#!/usr/bin/env ruby
require 'rubygems'
require 'hpricot'
require 'open-uri'
require 'pp'
class HTMLDoc
attr_reader :html
attr_reader :doc
/*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'
);
@subtleGradient
subtleGradient / shim.css
Created August 26, 2008 22:35
IE6 SHIM Fix -- For the Select box showthrough bug
* 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'
);
}