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
diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j | |
index 42e0632..7bf9d18 100644 | |
--- a/AppKit/CPTableView.j | |
+++ b/AppKit/CPTableView.j | |
@@ -217,6 +217,10 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; | |
CPTableColumn _draggedColumn; | |
CPArray _differedColumnDataToRemove; | |
+ | |
+ CPArray _layedOutDataViews; |
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
- (void)testThatCPArrayDoesSortUsingTwoDescriptors | |
{ | |
var descriptors = [ | |
[[CPSortDescriptor alloc] initWithKey:@"value" ascending:NO], | |
[[CPSortDescriptor alloc] initWithKey:@"number" ascending:NO] | |
]; | |
var target = [ | |
[[CPPrettyObject alloc] initWithValue:@"a" number:1], | |
[[CPPrettyObject alloc] initWithValue:@"a" number:2], |
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
- (void)testThatCPArrayDoesSortUsingDescriptorsForStrings | |
{ | |
var target = ["a", "b", "c", "d"]; | |
[target sortUsingDescriptors:[[[CPSortDescriptor alloc] initWithKey:@"stringValue" ascending:YES]]]; | |
CPLog.error(target); | |
} |
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
var result = obj.createResult(resultType); | |
result.add(new LineItem("A")); | |
result.add(new LineItem("B")); | |
Utility.populate(dependency, obj, "C", "D", "E"); | |
result.add(new LineItem("F"); | |
return result; |
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
; Derek Hammer | |
; | |
; Code Kata #4, Part B | |
; Parsing football.dat and gets the lowest points spread | |
; and team associated with it. Done in Ioke. | |
DATA_FORMAT = #/.*\d+\.\W(\w*)\W+(\d+)\W+(\d+)\W+(\d+)\W+(\d+)\W+(\d+)\W+(\d+)\W+(\d+)/ | |
pointsFielded = method(line, | |
DATA_FORMAT match(line)[6] toRational) | |
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
- (CPDragOperation)draggingEntered:(id)sender | |
{ | |
if(_delegate && [_delegate respondsToSelector:@selector(collectionView:validateDrop:)]) { | |
return [_delegate collectionView:self validateDrop:sender]; | |
} | |
return CPDragOperationNone; | |
} |
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
- (CPDragOperation)draggingEntered:(id)sender | |
{ | |
if(_delegate && [_delegate respondsToSelector:@selector(collectionView:validateDrop:)]) { | |
return [_delegate collectionView:self validateDrop:sender]; | |
} | |
return CPDragOperationNone; | |
} |
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
npm configfile /Users/hammerdr/.npmrc | |
npm sudo false | |
npm cli [ 'install' | |
, 'http://github.com/astro/node-expat/tarball/master' | |
] | |
npm install pkg http://github.com/astro/node-expat/tarball/master | |
npm install local http://github.com/astro/node-expat/tarball/master | |
npm fetch http://github.com/astro/node-expat/tarball/master to /Users/hammerdr/.node_libraries/.npm/.tmp/1276396444374-0.41715651331469417.tgz | |
npm fetch http://github.com/astro/node-expat/tarball/master | |
npm fetch 302 |
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
{ | |
"name": "Program", | |
"children": [ | |
{ | |
"name": "ClassDecl", | |
"children": [ | |
{ | |
"name": "MethodDecl", | |
"children": [ | |
{ |
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
- (void)sendEvent:(CPEvent)anEvent | |
{ | |
if(([anEvent modifierFlags] & CPCommandKeyMask) && anEvent._keyCode == 13) // key enter | |
{ | |
[close performClick:self]; | |
} | |
} |