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
| // | |
| // HMStrokeTextFieldCell.m | |
| // KCD | |
| // | |
| // Created by Hori,Masaki on 2014/04/19. | |
| // Copyright (c) 2014年 Hori,Masaki. All rights reserved. | |
| // | |
| #import "HMStrokeTextFieldCell.h" |
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 <Foundation/Foundation.h> | |
| int main( int argc, char *argv[]) { | |
| @autoreleasepool { | |
| NSDate *startDate = [NSDate date]; | |
| for(int i = 0; i < 1000000; i++) { | |
| NSMutableArray *array = [NSMutableArray array]; | |
| for( int n = 0; n < 100; n++) { |
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 <Cocoa/Cocoa.h> | |
| @interface HMSourceListColoredView : NSView | |
| @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
| {"storePlatformData":{"lockup":{"isAuthenticated":false,"version":2,"results":{"pl.af0c5fc388da4e5aa12a0ade02685c94":{"artwork":{"isMosaic":true,"textColor4":"c79d75","textColor3":"ccc49f","textColor2":"f6bf8d","textColor1":"fbf0c1","bgColor":"101415","width":2400,"height":2400,"url":"http://is3.mzstatic.com/image/thumb/z9--iPV7yB6bQsGlUeUkXg/{w}x{h}bb.{f}"},"url":"https://itunes.apple.com/jp/playlist/miles-davis-the-later-years/idpl.af0c5fc388da4e5aa12a0ade02685c94","genreNames":[],"playlistId":"pl.af0c5fc388da4e5aa12a0ade02685c94","id":"pl.af0c5fc388da4e5aa12a0ade02685c94","name":"Miles Davis: The Later Years","artworkTrackIds":["190071731","215597655","828551830","331186377","828607064"],"artworkTracks":{"828607064":{"artwork":{"textColor4":"b88a2c","textColor3":"d1d1d1","textColor2":"e0a631","textColor1":"ffffff","bgColor":"1a1a1c","width":1417,"height":1411,"url":"http://is3.mzstatic.com/image/thumb/Music/v4/6d/a5/3c/6da53cc5-ccaa-af8e-0f95-75b01da0a7bc/source/{w}x{h}bb.{f}"},"id":828607064},"331186377": |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Database Error</title> | |
| <style type="text/css"> | |
| ::selection{ background-color: #E13300; color: white; } | |
| ::moz-selection{ background-color: #E13300; color: white; } | |
| ::webkit-selection{ background-color: #E13300; color: white; } |
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
| class Hoge:CppTestClass::IListener { | |
| char *objcInstance; // void* って使えたっけ...w | |
| char *objcSelector; | |
| void (*objcFunction)(char*,char*); | |
| CppTestClass *mCpp; | |
| void test(char *obj, char *selector, void (*function)(char*, char*)) { | |
| mCpp = new CppTestClass(this); | |
| objcInstance = ojc; |
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 "HMAASegue.h" | |
| @implementation HMAASegue | |
| - (void)perform | |
| { | |
| NSInteger slideSource = -1; | |
| NSInteger slideDest = 1; | |
| if([self.identifier isEqualToString:@"reverse"]) { | |
| slideSource = 1; |
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
| typedef BOOL (^HMFindViewController)(NSViewController *viewController); | |
| - (NSViewController *)findFromViewController:(NSViewController *)viewController usingBlock:(HMFindViewController)blocks | |
| { | |
| if(blocks(viewController)) return viewController; | |
| for(NSViewController *vc in viewController.childViewControllers) { | |
| NSViewController *found = [self findFromViewController:vc usingBlock:blocks]; |
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 Cocoa | |
| fileprivate struct Register { | |
| let prototype: ValueTransformer | |
| func register() { | |
| ValueTransformer.setValueTransformer(prototype, forName: prototype.registerName()) | |
| } | |
| func register(name: String) { | |
| let tName = NSValueTransformerName(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
| // Write some awesome Swift code, or import libraries like "Foundation", | |
| // "Dispatch", or "Glibc" | |
| import Foundation | |
| enum ComparisonResult { | |
| case orderedSame | |
| case orderedAscending | |
| case orderedDescending | |
| } |