Skip to content

Instantly share code, notes, and snippets.

<!-- These strings are used in the about:robots page, which ties in with the
robots theme used in the Firefox 3 Beta 2/3 first run pages...
https://www.mozilla.com/en-US/firefox/3.0b2/firstrun/
https://www.mozilla.com/en-US/firefox/3.0b3/firstrun/
They're just meant to be fun and whimsical, with references to some geeky
but well-known robots in movies and books. Be creative with translations! -->
<!-- Nonsense line from the movie "The Day The Earth Stood Still". No translation needed. -->
<!ENTITY robots.pagetitle "Gort! Klaatu barada nikto!">
<!-- Movie: Logan's Run... Box (cybog): "Welcome Humans! I am ready for you." -->
@topia
topia / svn-update-externals-seperately.py
Created November 22, 2008 19:19
update externals seperately
"""
zope's huge facade breaks simple svn update (with 1.6.0 r34332).
"""
import sys
import os.path
from subprocess import Popen, check_call, PIPE
def svn_get_info(args):
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# $URL$
# $Id$
"""Tiny Python Console for TwitterIrcGateway.
This script require IronPython 2.0 bundled or CPython 2.5 (not 2.6) bundled
pure python part of python standard library:
codeop, traceback, __future__, os, os.path (and ntpath), linecache,
@topia
topia / itunes.py
Created April 22, 2009 14:57 — forked from mayuki/itunes.py
# -*- coding: utf-8 -*-
import clr
import re
import Misuzilla.Applications.TwitterIrcGateway
from System import *
from System.Diagnostics import Trace
from Misuzilla.Net.Irc import *
from System.Runtime.InteropServices import Marshal
@topia
topia / ipy.py
Created April 24, 2009 21:36 — forked from mayuki/ipy.py
# ipy.exe for TwitterIrcGateway
import clr
import System
from System.Diagnostics import Trace
import Misuzilla.Applications.TwitterIrcGateway
import Misuzilla.Applications.TwitterIrcGateway.AddIns
import Misuzilla.Applications.TwitterIrcGateway.AddIns.Console
from Misuzilla.Applications.TwitterIrcGateway.AddIns.Console import Context
# setup library path and site for TwitterIrcGateway
import sys
sys.path.append(r"Libraries\IronPython")
import site
@topia
topia / merge-cell-helper.vba
Last active August 29, 2015 13:59
Merge cell helper VBA (license: modified BSD)
Sub MergeSelectionAndSelectNext(vertical As Boolean)
' merge and select next area
Dim selRange As Range
Dim newRange As Range
If TypeName(Selection) <> "Range" Then
MsgBox "Please select some range (not " & TypeName(Selection) & ") and re-exec."
Exit Sub
End If
@topia
topia / brew-formula.diff
Last active June 16, 2020 13:22
pulseaudio / CoreAudio name/channel patch
diff --git i/Formula/pulseaudio.rb w/Formula/pulseaudio.rb
index 4e2790babf..3531bd0464 100644
--- i/Formula/pulseaudio.rb
+++ w/Formula/pulseaudio.rb
@@ -18,6 +18,10 @@ class Pulseaudio < Formula
depends_on "automake" => :build
depends_on "gettext" => :build
depends_on "intltool" => :build
+
+ patch :p1 do