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
@import <AppKit/CPImage.j> | |
@import <AppKit/CPImageView.j> | |
@import "Photo.j" | |
@implementation PhotoListElement : CPView | |
{ | |
CPImage _tagButtonImage; | |
CPImage _previewButtonImage; |
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
hammermbp:Pokemon hammerdr$ sudo tusk install --force barista | |
The following packages are already installed: | |
* barista | |
The following packages will be installed: | |
* barista | |
Downloading: http://github.com/hammerdr/barista/zipball/master | |
Unzipping: /usr/local/narwhal/zips/barista.zip | |
+ /usr/local/narwhal/packages/barista/Framework/Barista/Reporting/Resources/WooFunctionIcons.license | |
+ /usr/local/narwhal/packages/barista/Framework/Barista/Reporting/Resources/add_32.png | |
+ /usr/local/narwhal/packages/barista/Framework/Barista/Reporting/Resources/info_button_32.png |
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
Feature: MyButton shows up | |
In order to satisfy Bob | |
As a awesome dude | |
I want to show him MyButton | |
Scenario: MyButton shows on load | |
Then MyButton should display |
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
document.body.innerHTML = ""; | |
CPApp = nil; | |
_CPAppBootstrapperActions = nil; | |
CPApplicationMain(nil,nil); |
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]; | |
} | |
} |
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
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
- (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
; 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) | |