Public Gists by autodata

Gravatar
Mon Nov 23 14:54:38 -0800 2009
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Gravatar
Mon Nov 23 12:24:00 -0800 2009
1
2
3
module HTML
  class StathamSanitizer < WhiteListSanitizer
 
Gravatar
Sun Nov 22 11:23:26 -0800 2009
1
{"_id":"00f67c9ddb85fb7c0a16c2db6eab6687","_rev":"1-044b6aceccfb72c81a95ca9f74089081","type":"failure-info","fails":{"tests/layout/reftests/bugs/9458-basic-1.html":{"lastsuccess":null,"firstfailed":{"product":"Fennec","os":"Maemo","timestamp":"2009-11-19 15:47:40.932464","_rev":"1-bc6fe18e564b8ef57c
Gravatar
Sat Nov 21 15:46:30 -0800 2009
1
2
3
#! /bin/sh
# http://kbeezie.com/view/nginx-and-django/
 
Gravatar
Sun Aug 30 18:49:46 -0700 2009
1
2
3
# browsing of shared dvds/cds on leopard
defaults write com.apple.NetworkBrowser EnableODiskBrowsing -bool true
defaults write com.apple.NetworkBrowser ODSSupported -bool true
Gravatar
Wed Aug 26 07:53:45 -0700 2009
1
2
3
def fib(n):
   if n == 0 or n == 1:
      return n
Gravatar
Thu Aug 20 17:07:05 -0700 2009
1
2
3
" Vim color file
" eclips3remix v0.1
 
Gravatar
Thu Aug 20 14:14:35 -0700 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Gravatar
Wed Aug 12 12:11:31 -0700 2009
1
2
3
require 'net/dns/resolver'
 
# Custom Domain
Gravatar
Sat Aug 08 08:44:58 -0700 2009
1
2
3
script/generate plugin HelloWorld
 
# vendor/plugins/hello_world/init.rb
Gravatar
Wed Aug 05 14:02:00 -0700 2009
1
2
3
# Referring to http://blog.rubybestpractices.com/posts/gregory/011-tap-that-hash.html
 
# Ruby 1.9, no tap, single line
Gravatar
Mon Jun 22 12:56:06 -0700 2009
1
2
3
from xml.sax.saxutils import escape
 
import urllib, re, os, urlparse
Gravatar
Fri Jun 12 05:45:57 -0700 2009
1
2
3
# from http://blog.davidziegler.net/post/122176962/a-python-script-to-automatically-extract-excerpts-from
 
from BeautifulSoup import *
Gravatar
Mon Jun 01 14:01:02 -0700 2009
1
2
# get a random record from a table
Item.first(:offset => ( Item.count * rand ).to_i)
Gravatar
Wed May 27 12:29:15 -0700 2009
1
2
3
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
Gravatar
Wed Apr 29 08:12:10 -0700 2009
1
2
3
# urlmonitor - print out the URLs requested system wide on the main network interface
 
# Accept a network interface name as an optional argument
Gravatar
Wed Apr 22 16:34:30 -0700 2009
1
2
3
module BreadcrumbsHelper
  def breadcrumbs(*args, &block)
    yield(BreadcrumbBuilder.new(self))
Gravatar
Fri Apr 03 20:14:41 -0700 2009
1
2
3
# Monitor HTTP requests being made from your machine with a one-liner..
# Replace "en1" below with your network interface's name (usually en0 or en1)
sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*"
Gravatar
Mon Feb 09 06:47:31 -0800 2009
1
2
3
#!/usr/bin/env ruby
#
# Be sure to configure this node in the plugin configuration
Gravatar
Sun Feb 08 14:03:05 -0800 2009
1
2
3
# syntax_helper.rb
module SyntaxHelper
  WhiteListHelper.tags.merge(UV_SYNTAX_TAGS)