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
| #!/usr/bin/perl | |
| use strict; | |
| use Fcntl ':mode'; | |
| use File::stat 'stat'; | |
| use Net::SFTP::Foreign; | |
| my $HOST = 'user@example.com'; | |
| my $PASS = '********'; | |
| my $MORE = [ -o => 'StrictHostKeyChecking no' ]; |
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 junit.framework.TestCase; | |
| public class MyTest extends TestCase { | |
| private int a, b; | |
| @Override | |
| public void setUp() { | |
| a = 1; | |
| b = 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
| CLASS_NAME = MyObject | |
| OBJS = main.o $(CLASS_NAME).o $(CLASS_NAME)Tests.o | |
| PROGRAM = a.out | |
| CFLAGS = -Wall -F$(FWPATH) | |
| LIBS = -F$(FWPATH) -framework XCTest -framework Foundation | |
| FWPATH = /Applications/Xcode.app/Contents/Developer/Library/Frameworks | |
| XCTEST = /Applications/Xcode.app/Contents/Developer/usr/bin/xctest |
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> | |
| #import <objc/runtime.h> | |
| @interface NSUndoManager (Logging) | |
| @end | |
| @implementation NSUndoManager (Logging) | |
| + (void)load |
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 <UIKit/UIKit.h> | |
| @interface MyTextView : UITextView | |
| - (void)replaceSelectionWithAttributedText:(NSAttributedString *)text; | |
| - (void)replaceRange:(NSRange)range withAttributedText:(NSAttributedString *)text; | |
| @end |
NewerOlder