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
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch" |
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
;; python checker setup | |
(setq python-check-command "~/bin/pycheckers.sh") |
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
# | |
# c.f. StackOverflow question/answer here: http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
# | |
# Version 2.3 | |
# | |
# Latest Change: | |
# - Apple's handling of "project files" is broken; added a workaround for Xcode 4.5 | |
# - Added automatic FAIL BUILD if any of the internal commands fail | |
# | |
# Purpose: |
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
# -*- encoding: utf-8 -*- | |
import wx | |
import os.path | |
from wx.lib.dialogs import openFileDialog | |
from SimpleCV import Image, Color, Display | |
# Make a function that does a half and half image. | |
def halfsies(left, right): | |
result = left |
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
- (id)initWithOperationQueue:(NSOperationQueue *)operationQueue | |
{ | |
id object = nil; | |
//////////////////////////////////////////////////////////////////////////////////////////////////// | |
do | |
{ | |
if(operationQueue==nil) | |
{ |
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 zsh | |
pyflakes "$1" | |
# pep8 --repeat "$1" | |
true |
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
# -*- coding: utf-8 -*- | |
# Define here the models for your scraped items | |
# | |
# See documentation in: | |
# http://doc.scrapy.org/en/latest/topics/items.html | |
# Example | |
# {"expanded":false, | |
# "classes":"folder", | |
# "hasChildren":true, | |
# "id":"100000000A", |
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
#!/user/bin/env python | |
import zipfile | |
import os.path | |
import time | |
from shutil import copyfile | |
def zipdir(path, zip): | |
relroot = os.path.abspath(os.path.join(path, "..")) |