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
------------------------------------------------------------------------------- | |
-- This is a simple AppleScript for use with Google Chrome (Chrome.app) and the | |
-- [Chrome for a Cause extension](http://bit.ly/gU4eQS). It will open a new tab | |
-- and then close it after a 1 second delay 250 times (the daily limit for the | |
-- extension). See the instructions below to use. | |
-- | |
-- From AppleScript Editor: | |
-- | |
-- 1. Open AppleScript Editor (/Applications/Utilities/AppleScript Editor.app). | |
-- 2. Copy this script into the text window and click Run. |
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
from Foundation import * | |
from AppKit import NSAttributedString | |
import os | |
class Sticky(NSObject): | |
"""A Stickies document. | |
Attributes (from class dump): | |
int windowColor | |
int windowFlags |
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/python | |
from objc import YES, NO, NULL | |
from Foundation import * | |
from AddressBook import * | |
import os | |
# Set the path to git | |
GIT = "/usr/local/bin/git" |
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
# | |
# A short script to generate a xxModel.strings for a given xx.xcdatamodel file. | |
# | |
from objc import YES, NO, NULL | |
from Foundation import * | |
from CoreData import NSManagedObjectModel | |
from os import popen as system, rmdir, remove | |
from optparse import OptionParser | |
from tempfile import mkdtemp | |
import sys |
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
@interface UIView (UIImageCreation) | |
- (UIImage *)createImageFromRect:(CGRect)frame; | |
- (UIImage *)createImage; | |
@end | |
@implementation UIView (UIImageCreation) | |
- (UIImage *)createImageFromRect:(CGRect)frame |
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
sudo /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer |
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 | |
"""Generate a password using the Oplop password hashing algorithm. | |
For more information: http://code.google.com/p/oplop/wiki/HowItWorks""" | |
from sys import argv, stdout | |
from hashlib import md5 | |
from base64 import urlsafe_b64encode as b64 | |
import re |
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
==> Checking out http://v8cgi.googlecode.com/svn/trunk/ | |
/usr/bin/svn up --force /Users/cameron/Library/Caches/Homebrew/v8cgi--svn | |
At revision 934. | |
/usr/bin/svn export --force /Users/cameron/Library/Caches/Homebrew/v8cgi--svn /private/tmp/homebrew-v8cgi-HEAD-Xywf | |
Export complete. | |
==> scons -j 4 arch=x64 library=shared socket=1 process=1 cgi=1 mysql=0 gl=0 module=0 config_file=/usr/local/etc/v8cgi.conf v8_path=/usr/local/Cellar/v8/HEAD dom=0 gd=0 sqlite=0 | |
scons -j 4 arch=x64 library=shared socket=1 process=1 cgi=1 mysql=0 gl=0 module=0 config_file=/usr/local/etc/v8cgi.conf v8_path=/usr/local/Cellar/v8/HEAD dom=0 gd=0 sqlite=0 | |
scons: Reading SConscript files ... | |
Checking for C header file sys/mman.h... yes | |
Checking for C function sleep()... yes |
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/python | |
import re, urllib, urllib2 | |
class Spreadsheet(object): | |
def __init__(self, key): | |
super(Spreadsheet, self).__init__() | |
self.key = key | |
class Client(object): |
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
// Source: http://www.golimojo.com/etc/js-subclass.html | |
function subclass(constructor, superConstructor) | |
{ | |
function surrogateConstructor() | |
{ | |
} | |
surrogateConstructor.prototype = superConstructor.prototype; |
OlderNewer