Skip to content

Instantly share code, notes, and snippets.

View zer0her0's full-sized avatar

Andrew M zer0her0

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>New York State Museum, Albany, New York</title>
<META http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" l gen true for "http://www.nysm.nysed.gov/" by "dgerhard@mail.nysed.gov" r (SS~~000 1))'>
<link href="/style/nysmstyle.css" rel="stylesheet" type="text/css">
<link href="/includes/images/favicon.ico" REL="SHORTCUT ICON" title="SHORTCUT ICON">
<META name="author" CONTENT="NYS Museum Technology Center">
<META name="description" CONTENT="NYS Museum">
@zer0her0
zer0her0 / Ninja CSS
Created February 20, 2011 14:42
ninja class css
.ninja {
color: black;
visibility: hidden;
}
@zer0her0
zer0her0 / ffmpeg codecs
Created April 13, 2011 17:05
my ffmpeg codecs on my OS X box
win1469:Downloads ameier$ ffmpeg -codecs
FFmpeg version 0.6.2, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 13 2011 10:41:55 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --disable-debug --prefix=/usr/local/Cellar/ffmpeg/0.6.2 --enable-shared --enable-pthreads --enable-nonfree --enable-gpl --disable-indev=jack --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libfaad
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
Codecs:
@zer0her0
zer0her0 / ffmpeg-log
Created June 5, 2011 12:55
First WebM conversion
Last login: Thu May 19 13:13:05 on ttys001
win1469:~ ameier$ cd Desktop/coleman/
win1469:coleman ameier$ brew
Example usage:
brew install FORMULA...
brew uninstall FORMULA...
brew search [foo]
brew list [FORMULA...]
brew update
brew outdated
@zer0her0
zer0her0 / main.css
Created June 17, 2011 22:50
CSS snippet
#wrapper{
width:100%;
margin:0 auto;
padding:0;
text-align:left;
background:#fff;
z-index:1;
position:relative;
}
#outer{
@zer0her0
zer0her0 / index.html
Created June 17, 2011 22:53
HTML snippet
<html>
<head>
<title>title</title>
<link href="main2.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7]>
<style type="text/css">
/* the only hacks in this code are here */
#left,#right{
border-top:1px solid #000;
@zer0her0
zer0her0 / ios.css
Created June 25, 2011 16:28
CSS bits and pieces for iOS
overflow: scroll;
-webkit-overflow-scrolling: touch;
require 'rubygems'
require 'nokogiri'
require 'httparty'
doc = Nokogiri(HTTParty.get('http://www.gutenberg.org/wiki/Harvard_Classics_(Bookshelf)'))
ids = doc.css('a').select{|a| a.attr('title') =~ /ebook:/ }.map do |a|
a.attr('title') =~ /ebook:(\d+)/
{:title => a.text, :id => $1 }
end.compact.uniq
@zer0her0
zer0her0 / gist:1171953
Created August 25, 2011 21:06
Extension testing...
<script type="text/javascript">
safari.application.addEventListener("command", tableGrab, false);
function tableGrab() {
var iDiv = document.getElementById("reservations");
var iTable = iDiv.getElementsByTagName("table");
var iRows = iDiv.getElementsByTagName("tr");
var iCells = iDiv.getElementsByTagName("td");
var ary = [];
var ary2d = [];
@zer0her0
zer0her0 / gist:1187530
Created September 1, 2011 23:08
grab page/site
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
--no-parent \
www.website.org