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
earthling:cappuccino tba$ ant | |
Buildfile: build.xml | |
build: | |
build: | |
[mkdir] Created dir: /Users/tba/objj_build/Objective-J.build/Release | |
[mkdir] Created dir: /Users/tba/objj_build/Objective-J.build/Release/Rhino | |
[mkdir] Created dir: /Users/tba/objj_build/Release/Objective-J | |
[mkdir] Created dir: /Users/tba/objj_build/Objective-J.build/Release/Browser |
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
# delete all the ._ files (recursive) | |
find . -name "._*" -print | xargs rm |
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
#!/usr/bin/env ruby | |
# | |
# Find bloating passengers and kill them gracefully. Run from cron every minute. | |
# | |
MEM_LIMIT = ARGV[0].to_i || 500 | |
module Process | |
def self.running?(pid) | |
begin |
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
# use the ubuntu machine gem | |
require 'capistrano/ext/ubuntu-machine' | |
# ####################################### | |
# HOSTING PROVIDER CONFIGURATION | |
# Those tasks have been tested with severa hosting providers | |
# and sometimes tasks are specific to those providers | |
set :hosting_provider, "slicehost" # currently supported : ovh-rps, ovh-dedie, slicehost | |
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
- (void)setFrameSize:(CGSize)aSize | |
{ | |
[super setFrameSize:aSize]; | |
#if PLATFORM(DOM) | |
if (_isBezeled && _bezelStyle == CPTextFieldRoundedBezel) | |
CPDOMDisplayServerSetStyleSize(_DOMTextElement, _frame.size.width - 2.0 * ROUNDEDBEZEL_HORIZONTAL_PADDING, _frame.size.height - TOP_PADDING - BOTTOM_PADDING); | |
else | |
CPDOMDisplayServerSetStyleSize(_DOMTextElement, _frame.size.width - 2.0 * HORIZONTAL_PADDING, _frame.size.height - TOP_PADDING - BOTTOM_PADDING); | |
// CPDOMDisplayServerSetStyleSize(_DOMTextElement, _frame.size.width - 2.0 * HORIZONTAL_PADDING, _frame.size.height - TOP_PADDING - BOTTOM_PADDING); |
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
/* | |
* AppController.j | |
* | |
* Created by __Me__ on __Date__. | |
* Copyright 2008 __MyCompanyName__. All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
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
# http://discuss.joyent.com/viewtopic.php?id=9043 | |
require 'zip/zipfilesystem' | |
# source should be a zip file. | |
# target should be a directory to output the contents to. | |
def unzip_file(source, target) | |
# Create the target directory. | |
# We'll ignore the error scenario where |
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
2009-00-18 19:06:23.996 Cappuccino [info]: Removing: CPDOMWindowBridge.j | |
/usr/local/share/objj/lib/press.j | |
InternalError: Can't find method java.lang.String.valueOf(). (<eval'ed string>#1(Function)#376) | |
OBJJ EXCEPTION: InternalError: Can't find method java.lang.String.valueOf(). (<eval'ed string>#1(Function)#376) | |
Name: InternalError | |
Message: Can't find method java.lang.String.valueOf(). (<eval'ed string>#1(Function)#376) | |
File: <eval'ed string>#1(Function) | |
Line: 376 | |
Rhino Exception: org.mozilla.javascript.EvaluatorException: Can't find method java.lang.String.valueOf(). (<eval'ed string>#1(Function)#376) | |
org.mozilla.javascript.EvaluatorException: Can't find method java.lang.String.valueOf(). (<eval'ed string>#1(Function)#376) |
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
require 'rubygems' | |
require 'grit' | |
$KCODE = 'u' | |
# Some people appear in Rails logs under different names, there are nicks, | |
# typos, email addresses, shortenings, etc. This is a hand-made list to map | |
# them in order to be able to aggregate commits from the same real author. | |
SEEN_IN_LOG_ALSO_AS = { | |
'Cheah Chu Yeow' => ['Chu Yeow', 'chuyeow'], |
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
@import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
} | |
- (void)applicationDidFinishLaunching: (CPNotification)aNotification | |
{ | |
var myWindow = [[CPWindow alloc] initWithContentRect: CGRectMake(50,50,350, 250) |
OlderNewer