This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------ | |
// JavaScript function tracer for "classes" | |
//------------------------------------------------------------------------------ | |
// from: [email protected] | |
// home: http://gist.github.com/189144 | |
//------------------------------------------------------------------------------ | |
//------------------------------------------------------------------------------ | |
// define our function tracer | |
//------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ====================================================== | |
Add a "Add to Google" (Reader or Homepage) icon to Safari's | |
RSS reader. | |
The file to edit is this one: | |
/System/Library/Frameworks/PubSub.framework/Versions/A/Resources/PubSubAgent.app/Contents/Resources/Feed.html | |
Make a copy before you continue. I suggest Feed-original.html | |
in the same directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#----------------------------------------------------------------------------- | |
# The MIT License | |
# | |
# Copyright (c) 2009, 2010 Patrick Mueller | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sample code | |
function legend(message) { | |
var dashes = new Array(60).join("-") | |
console.log(dashes) | |
console.log(message) | |
console.log(dashes) | |
console.log("") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# convert the pro git book into HTML, | |
# suitable for reading in Dropbox on the iPhone | |
import os | |
import re | |
import sys | |
import base64 | |
import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
activate | |
set the bounds of the first window to {0, 0, 1280, 720} | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
#----------------------------------------------------------------------------- | |
def main(): | |
iFileNames = sys.argv[1:] | |
for iFileName in iFileNames: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name NotesInboxCounter | |
// @namespace http://fluidapp.com | |
// @description Updates the dock back with Inbox count for Lotus Notes | |
// @include * | |
// @author Patrick Mueller | |
// ==/UserScript== | |
(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import subprocess | |
#----------------------------------------------------------------------------- | |
def main(): | |
fileNames = sys.argv[1:] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<meta charset="utf-8" /> | |
<!-- | |
#------------------------------------------------------------------------------- | |
# Copyright (c) 2010 Patrick Mueller | |
# Licensed under the MIT license: | |
# http://www.opensource.org/licenses/mit-license.php | |
#------------------------------------------------------------------------------- | |
--> |
OlderNewer