alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]
This file contains 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
/* | |
* Copyright (c) 2013 Micha Mazaheri | |
* Released under the MIT License: http://opensource.org/licenses/MIT | |
*/ | |
#define LMWindowDEBUGResponders | |
#ifdef LMWindowDEBUGResponders | |
static BOOL _showFirstResponderOverlay = YES; | |
#endif |
This file contains 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
#compdef hg | |
# Zsh completion script for mercurial. Rename this file to _hg and copy | |
# it into your zsh function path (/usr/share/zsh/site-functions for | |
# instance) | |
# | |
# If you do not want to install it globally, you can copy it somewhere | |
# else and add that directory to $fpath. This must be done before | |
# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc | |
# file could look like this: |
This file contains 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
#compdef hg | |
# Zsh completion script for mercurial. Rename this file to _hg and copy | |
# it into your zsh function path (/usr/share/zsh/site-functions for | |
# instance) | |
# | |
# If you do not want to install it globally, you can copy it somewhere | |
# else and add that directory to $fpath. This must be done before | |
# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc | |
# file could look like this: |
This file contains 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
#!/bin/bash | |
# run from terminal and you can watch it log as well... or nohup it | |
cd ~ | |
testSiteForChanges () | |
{ | |
ls "old_page.html" 1>/dev/null 2>/dev/null | |
if [ $? -eq "1" ] ; then | |
/usr/local/bin/wget -q -O old_page.html $1 |
This file contains 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
# Copies the selected tweet's URL from Twitter.app, and | |
# opens corresponding page for Aaron Swartz's Twitter Viewer. | |
# | |
# Original by John Gruber: https://gist.github.com/1440914 | |
# This version by Daniel Jalkut | |
# | |
# I'm hooking this up to a keyboard shortcut specifically in Twitter.app, | |
# using my scripting utility FastScripts. | |
# | |
# Requires "Access for Assistive Devices" to be enabled. |
This file contains 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
// | |
// TextView.m | |
// TextDidChange | |
// | |
// Created by Timothy J. Wood on 10/27/09. | |
// Copyright 2009 The Omni Group. All rights reserved. | |
// | |
/* |
This file contains 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
@implementation JimPopUpButtonCell | |
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView | |
{ | |
NSRect rect = [self drawingRectForBounds: cellFrame]; | |
rect.size.width -= 17; // chop off the popup indicator | |
NSSize imageSize = NSMakeSize(12, 12); | |
rect.origin.x += (rect.size.width - imageSize.width) / 2.0; |