Skip to content

Instantly share code, notes, and snippets.

View aljungberg's full-sized avatar

Alexander Ljungberg aljungberg

View GitHub Profile
/Users/siker/Library/Application Support/TextMate/Bundles/Cappuccino.tmbundle/Support/lib/autocomplete.rb:58:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /Users/siker/Library/Application Support/TextMate/Bundles/Cappuccino.tmbundle/Support/lib/autocomplete.rb:58:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileinitialize'
from /tmp/temp_textmate.68QaMe:9:in
- (void)setEntry:(Entry)newEntry
{
entry = newEntry;
[entry /Users/siker/Library/Application Support/TextMate/Bundles/Cappuccino.tmbundle/Support/lib/autocomplete.rb:58:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /Users/siker/Library/Application Support/TextMate/Bundles/Cappuccino.tmbundle/Support/lib/autocomplete.rb:58:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileinitialize'
from /tmp/temp_textmate.TykOia:9:in
[self update];
console.log(entry + " to edit");
To use the default location, "/usr/local/narwhal", just hit enter/return, or enter another path:
Downloading Narwhal from "http://github.com/280north/narwhal/zipball/master"...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120k 100 120k 0 0 55241 0 0:00:02 0:00:02 --:--:-- 126k
Installing Narwhal...
Archive: /tmp/narwhal.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
eaecdc7 Fixed: calling setIsPaneSplitter: on a CPTableView would change the divider width but the subviews would not change size to match.
88f7cbe CPDate initWithString: now takes proper international format strings like NSDate. Similarly CPDate description generates such strings.
3c29b9a Fixed: CPArray insertObject:inArraySortedByDescriptors: always failed due to an incorrect method call and an out of scope variable reference. Also, even when fixed the method failed to produce the correct result due to a problem with _indexOfObject for non matched objects. Added unit tests.
2a28eec Added reverse sort tests for CPArray insertObject:inArraySortedByDescriptors:.
fe87138 The default theme can now be specified in the main Info.plist file using the key CPDefaultTheme. If no key is specified the default is Aristo.
8b12887 Merged some Jake changes.
e78f748 Removed a bindings console.log statement incompatible with browsers without a debug console.
34a44d0 Fixed: CPArrayController selectionIndexes returned nil initia
+ (CPTextField)standardTextFieldWithBase:(CPTextField)baseInstance
{
var textfield = [self textField:baseInstance],
bezelColor = [CPColor colorWithPatternImage:[[CPNinePartImage alloc] initWithImageSlices:
[
[_CPCibCustomResource imageResourceWithName:"textfield-bezel-square-0.png" size:CGSizeMake(2.0, 3.0)],
[_CPCibCustomResource imageResourceWithName:"textfield-bezel-square-1.png" size:CGSizeMake(1.0, 3.0)],
[_CPCibCustomResource imageResourceWithName:"textfield-bezel-square-2.png" size:CGSizeMake(2.0, 3.0)],
[_CPCibCustomResource imageResourceWithName:"textfield-bezel-square-3.png" size:CGSizeMake(2.0, 1.0)],
[_CPCibCustomResource imageResourceWithName:"textfield-bezel-square-4.png" size:CGSizeMake(1.0, 1.0)],
# Fix keyboard interrupts when using multiprocessing.pool.imap().
# Usage:
# import fix_multiprocessing.py
from multiprocessing.pool import IMapIterator
def wrapper(func):
def wrap(self, timeout=None):
# Note: the timeout of 1 googol seconds introduces a rather subtle
- (void)_loadMainFrameURL
{
[self _startedLoading];
_ignoreLoadStart = YES;
_ignoreLoadEnd = NO;
_url = _mainFrameURL;
_html = null;
@aljungberg
aljungberg / CPDate-TimeAgo.j
Created November 30, 2010 20:32
[date timeAgo] method which returns a string like "about a minute"
/*
* Created by Alexander Ljungberg on May 17, 2010.
* Copyright 2010, WireLoad, LLC All rights reserved.
*
* Based on jQuery's timeago by Ryan McGeary.
*
* Original code is:
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
@import <Foundation/CPObject.j>
@implementation Model : CPObject
{
CPString foo @accessors;
CPString bar @accessors;
}
@end
/*
* AppController.j
* TestTemplate
*
* Created by You on August 10, 2010.
* Copyright 2010, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>