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 perl | |
use File::Temp qw/ tempdir /; | |
use File::Path qw/ rmtree /; | |
use File::Spec::Functions; | |
print "autobuild (C) 2009 Dmitry Chestnykh and friends (http://twitter.com/dchest/friends)\n\n"; | |
if ($#ARGV < 3) { | |
usage(); |
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
/* | |
* Copyright (c) 2005 Apple Computer, Inc. All rights reserved. | |
* | |
* @APPLE_LICENSE_HEADER_START@ | |
* | |
* The contents of this file constitute Original Code as defined in and | |
* are subject to the Apple Public Source License Version 1.1 (the | |
* "License"). You may not use this file except in compliance with the | |
* License. Please obtain a copy of the License at | |
* http://www.apple.com/publicsource and read it before using this file. |
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 ruby | |
# | |
# Git log to iCalendar | |
# | |
# Written by Dmitry Chestnykh, 5 Aug 2008 | |
# Public domain | |
# | |
# Usage: | |
# | |
# cd git-repo |
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
// -------------------- CRSegmentedCell.h ------------------------------ | |
#import <Cocoa/Cocoa.h> | |
@interface CRSegmentedCell : NSSegmentedCell { | |
NSInteger highlightedSegment; | |
} | |
@property(assign) NSInteger highlightedSegment; | |
@end |
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
~/Projects/MacRuby-trunk $ sudo rake install --trace | |
(in /Users/dmitry/Projects/MacRuby-trunk) | |
** Invoke install (first_time) | |
** Invoke framework:install (first_time) | |
** Invoke framework:info_plist (first_time) | |
** Execute framework:info_plist | |
** Invoke framework:install_ext (first_time) | |
** Execute framework:install_ext | |
cd ext/ripper | |
/usr/bin/make top_srcdir=../.. ruby="../../miniruby -I../.. -I../../lib" extout=../../.ext hdrdir=../../include arch_hdrdir=../../include install |
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 ruby | |
# Convert Git repository to Fossil | |
# | |
# Use this script inside git working copy: | |
# (make a backup copy before using it!) | |
# | |
# $ cd git-repo | |
# $ ruby ../git2fossil.rb | |
# |
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
#!/bin/sh | |
# | |
# This hook does two things: | |
# | |
# 1. update the "info" files that allow the list of references to be | |
# queries over dumb transports such as http | |
# | |
# 2. if this repository looks like it is a non-bare repository, and | |
# the checked-out branch is pushed to, then update the working copy. | |
# This makes "push" function somewhat similarly to darcs and bzr. |
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
# Simple toy html writer in ruby | |
def tag(name, *args) | |
a = args.length > 0 ? " " + args.join(" ") : "" | |
a = "" if a == " " | |
name = "p" if name == "§" | |
block_given? ? "<#{name}#{a}>" + yield + "</#{name}>\n" : "<#{name}#{a} />" | |
end | |
def defmacro(name) |
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
#!/bin/sh | |
(defaults read com.apple.screencapture disable-shadow 2> /dev/null && \ | |
defaults delete com.apple.screencapture disable-shadow && \ | |
echo "Screenshot shadows ON") || \ | |
(defaults write com.apple.screencapture disable-shadow -bool true && \ | |
echo "Screenshot shadows OFF") | |
killall SystemUIServer |
OlderNewer