Instantly share code, notes, and snippets.

View FFExp2HTMLex.php
<?php
/**
* FFExp2HTMLex.php - "Paging Edition" (customization by Micah Wittman) - Converts the output of ffexp.php into multiple HTML page files - Version 0.5 (2015-03-12)
*
* Based on:
*
* FFExp2HTML.php - Converts the output of ffexp.php in HTML - Version 1.0 (2010-22-12)
* Created by Claudio Cicali - <claudio.cicali@gmail.com>
* Released under the MIT license
*
View ffbookmark.js
(function(){function C(){function a(){var a=document.getElementById("ff__shadow"),b=document.getElementById("ff__foreground");if(!a||!b)clearInterval(n);else if(h!=b.offsetWidth||k!=b.offsetHeight)h=b.offsetWidth,k=b.offsetHeight,a.style.width=h+u+"px",a.style.height=k+u+"px"}if(!document.getElementById("ff__container")){var b;window.getSelection?b=""+window.getSelection():document.selection&&(b=document.selection.createRange().text);for(var c=0,e=window.ff__reshare?[]:document.getElementsByTagName("img"),
d=0;d<e.length;d++){var f=e[d];if(!(f.width<v||f.height<v)){c++;var l=q(f,"mouseover",w(D,f));r.push({element:f,cursor:f.style.cursor,listener:l})}}var g=m();g.id="ff__container";g.style.position="absolute";g.style.top=p().y+"px";g.style.right="0";g.style.width="auto";g.style.zIndex=1E5;d=m(g);d.id="ff__shadow";d.style.backgroundColor="black";d.style.position="absolute";d.style.zIndex=0;d.style.top="0";d.style.right="0";E(d,.3);d=m(g);d.id="ff__foreground";d.style.backgroundColor="white";d.style.zIndex=
2;d
View ffbookmark.src.js
/***
v.1.03 "Woot Tube" Release - woot.com photo auto-select feature addition, youtube image url fix.
v.1.02 "FLICKA" Release - flickr.com photo auto-select feature addition.
***/
(function() {
var kMinImageSize = 30;
var kOutlineColor = "#1030cc";
var kOutlineSize = 3;
var kShadowSize = 7;
var gAvailableImages = [];
View openphoto-install-shell-script.sh
# download openphoto
git clone https://github.com/photo/frontend.git openphoto
cd openphoto
# create the userdata folder
mkdir -p src/userdata
# make the assets folder writable by the apache user
setfacl -R -m u:apache:rwx src/html/assets
View Renumber GEDCOM IDs
# GEDCOM / Webtrees Renumber IDs
# Micah Wittman, Copyright 2013, <wittman.org> <http://twitter.com/micahwittman>
# Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://www.gnu.org/licenses/) licenses.
require 'rubygems'
def write_pro(name, txt)
output_file = File.open($app_path + '/' + name.sub('.ged','.new.ged'), "w")
output_file << txt
output_file.close
View jquery.js
/*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
View buzzSawChrome.user.js
// ==UserScript==
// @name buzzSawChrome
// @namespace http://wittman.org/projects/buzzsawchrome/
// @description Google Chrome content extension - Adds avatars to beginning of comments on Google Buzz.Also, Removes Buzz Count (below Inbox count), but still tooltip shows count. Also, removes Friendfeed profile image imported into Buzz.
// @author Micah Wittman
// @include http*://mail.google.com/mail/*#buzz*
// @include http*://www.google.com/profiles/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
// @version 0.1.0
// ==/UserScript==
View buzzCommentAvatar.user.js
// ==UserScript==
// @name buzzCommentAvatar
// @namespace http://wittman.org/projects/buzzcommentavatar/
// @description Adds avatars to beginning of comments on Google Buzz
// @author Micah Wittman
// @include http*://mail.google.com/mail/*
// @include http*://www.google.com/buzz/*
// @include http*://www.google.com/profiles/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @version 0.1.6
View pipioCustomize.user.js
// ==UserScript==
// @name pipioCustomize
// @namespace http://wittman.org/projects/pipiocustomize/
// @description Customization for pip.io
// @author Micah Wittman
// @include http://pip.io/*
// @include https://pip.io/*
// @version 0.1.7
// ==/UserScript==
View stackoverflowIndentFourSpaces.php
<?php
/*
Copyright (C) 2010 Micah Wittman | http://wittman.org/ | stackoverflow.m[a][t]wittman.org | http://stackoverflow.com/users/11181/micahwittman | http://twitter.com/micahwittman
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://www.gnu.org/licenses/) licenses.
Hosted application:
http://wittman.org/projects/stackoverflowindentfourspaces/
Repositories:
http://wittman.org/projects/stackoverflowindentfourspaces/stackoverflowIndentFourSpaces.php