Public Gists by fearphage

Gravatar
Sat Nov 14 19:38:52 -0800 2009
1
2
3
String.format = (function(slice) {
  return function(template) {
    var args = slice.call(arguments, 1), i = args.length;
Gravatar
Tue Nov 10 14:26:12 -0800 2009
1
2
3
Database = Class.create({
  initialize: function(tableName) {
    this.tableName = tableName;
Gravatar
Tue Nov 10 09:49:28 -0800 2009
1
2
3
@echo off
git init
REM safety first: just in case we're in another repository
gist: 230883 Replacement view for RSS fe...
Gravatar
Tue Nov 10 05:16:24 -0800 2009
1
2
3
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
gist: 229452 Very basic benchmarking fun...
Gravatar
Sun Nov 08 11:46:37 -0800 2009
1
2
3
function Benchmarker(count, args, that) {
  if (Object.prototype.toString.call(args) != '[object Array]') args = [args];
 
Gravatar
Sun Nov 08 09:12:02 -0800 2009
1
2
3
/* jquery.tinydb - jQuery interface to TinyDB (http://tinydb.org/)
 * Copyright (c) 2008 Chris Moyer (chris@inarow.net)
 *
gist: 229060 Shows commit logs on gist f...
Gravatar
Sat Nov 07 18:47:35 -0800 2009
1
2
3
// ==UserScript==
// @name gist logs
// @namespace http://d.hatena.ne.jp/murky-satyr
Gravatar
Sat Nov 07 18:28:09 -0800 2009
1
2
3
const Name = 'gatherer',
Gatherer = 'http://gatherer.wizards.com/',
Base = '<style>'+ <![CDATA[
Gravatar
Sat Nov 07 17:34:48 -0800 2009
1
2
3
###############################################################################
## Mobify Apache Redirect Plugin v1.1 ##
## http://mobify.me ##
gist: 229015 http://avdi.org/devblog/200...
Gravatar
Sat Nov 07 17:33:22 -0800 2009
1
2
3
APPNAME = org.avdi.myapp
VERSION = 1.0.0
DEVICE = tcp
gist: 227881 Diff for gist.github for Opera
Gravatar
Fri Nov 06 02:06:04 -0800 2009
1
2
3
// ==UserScript==
// @name Diff for gist.github for Opera & Chrome
// @namespace http://ss-o.net/
gist: 225918 original from http://ejohn....
Gravatar
Wed Nov 04 01:42:31 -0800 2009
1
2
3
Function.prototype.partial = (function(slice, undefined) {
  return function() {
    var fn = this, args = slice.call(arguments);
gist: 223011 isEventSupported test by ka...
Gravatar
Sat Oct 31 02:49:59 -0700 2009
1
2
3
/**
 * @method isEventSupported
 * @param {String} eventName
gist: 222294 IE-inspired convenience wra...
Gravatar
Fri Oct 30 05:09:35 -0700 2009
1
2
3
if ((typeof Node != 'undefined') && !document.selectNodes) {
  Node.prototype.selectNodes = function(xpath, resolver) {
    var contextNode = this.ownerDocument || this, result = [], i = 0, node
Gravatar
Tue Oct 13 09:08:53 -0700 2009
1
2
3
// one-liner
javascript:(function(src, count) { var img = new Image || document.createElement('img'); img.addEventListener('error', function() { if (!count) img.src = src; else alert('PASS'); count = 1; }, false); img.src = src; })('data:text/plain,fail')
 
gist: 202922 allows you to open subframe...
Gravatar
Tue Oct 06 03:49:57 -0700 2009
1
2
3
// ==UserScript==
// @include http://zonaele.com/*
// @include http://www.zonaele.com/*
Gravatar
Fri Oct 02 04:59:19 -0700 2009
1
2
3
#!/usr/bin/php -q
<?
include('Mail/mimeDecode.php');
Gravatar
Wed Sep 23 02:37:22 -0700 2009
1
2
3
// ==UserScript==
// @description disables unnecessary status bar animation
// @include http://www.fuenterrebollo.com/Castilla/arcaismos.html
Gravatar
Fri Sep 18 03:30:07 -0700 2009
1
2
3
// one-line quick test
javascript:(function(iframe) { iframe.src = 'data:text/html;base64,PCFkb2N0eXBlIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KICA8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCI+DQogICAgYWRkRXZlbnRMaXN0ZW5lcignbWVzc2FnZScNCiAgICAgICxmdW5jdGlvbihlKSB7DQogICAgICAgIGFsZXJ0KGUub3JpZ2luICsgJyBzYWlkOiAnICsgZS5kYXRhKTsNCiAgICAgIH0NCiAgICAgICxmYWxzZQ0KICAgICk7DQogIDwvc2NyaXB0Pg0KPC9oZWFkPg0KPGJvZHk+PC9ib2R5Pg0KPC9odG1sPg=='; iframe.contentWindow.postMessage('testing stuff', '*'); })(document.documentElement.appendChild(document.createElement('iframe')))
 
Gravatar
Thu Sep 17 11:54:12 -0700 2009
1
2
3
//! ==UserScript==
//! @include http://*
//! ==/UserScript==