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/Foundation.h> | |
(NSInvocation*)XSMakeInvocation(id obj, SEL aSelector, NSArray *args); | |
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/Foundation.h> | |
void dynamicMethodIMP(id self, SEL _cmd) { | |
NSLog(@"This Method(%@) is dynamically resolved.", NSStringFromSelector(_cmd)); | |
} | |
@interface MyObject : NSObject | |
{ | |
int i; |
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
#!/bin/bash | |
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user;killall Finder |
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/Foundation.h> | |
@interface XSDragImageView : NSImageView <NSDraggingSource, NSDraggingDestination> | |
{ | |
BOOL isHighLighted; // 테두리 표시 여부를 나타내는 값 | |
} | |
@end | |
@implementation XSDragImageView |
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
/* Appdelegate for coredata */ | |
#import <Foundation/Foundation.h> | |
#import <CoreData/CoreData.h> | |
@interface AppDelegate : NSObject <UIApplicationDelegate> | |
{ | |
UIWindow * _window; | |
NSManagedObjectModel * _managedObjectModel; | |
NSPersistentStoreCoordinator * _persistentStoreCoordinator; |
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
// block stack | |
#import <Foundation/Foundation.h> | |
typedef void(^Block)(void); | |
typedef struct _blockStack { | |
unsigned int capacity; | |
int top; |
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
// Adobe Illustrator Javascript to save multiple ai files into JPEG file. | |
// code by sooop | |
var defaultFolder = new Folder('C:/'); // 폴더 선택창에서 디폴트 폴더 | |
var targetFolder = new Folder(); | |
var sourceFiles; | |
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
var http = require('http'); | |
var server = http.createServer(); | |
server.on('request', function(req, res) { | |
res.writeHead(200); | |
res.write('hello world'); | |
res.end(); | |
}) |
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
//begin color transition | |
$transition( | |
%list_index% | |
// artist name, max 13 characters and if not exist, display 'unknown' | |
$if(%artist%, | |
$if($greater($len(%artist%),12), | |
$left(%artist%,11)…,%artist%), | |
unknown) | |
//title |
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
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) | |
Dim objRecip As Recipient | |
Dim strMsg As String | |
Dim res As Integer | |
Dim strBcc As String | |
On Error Resume Next | |
' #### USER OPTIONS #### | |
' address for Bcc -- must be SMTP address or resolvable | |
' to a name in the address book |