In Sourcetree, click the "Terminal" button to open your working directory in the Terminal
Type pico .gitignore
Replace the line that says
xcuserdata
with
*.xcscheme
xcschememanagement.*
xvals = [1,2,3] | |
yvals = [1,2,3,4] | |
for x in xvals: | |
for y in yvals: | |
# First, 0-indexing is better for the soul | |
i = x-1 | |
j = y-1 | |
# Next, the formula to linearize the 2-d indexing to 1-d indexing | |
x_extent = len(xvals) | |
k = x_extent*j + i |
def show_slicing(text, start=0, stop=None, step=1): | |
if step<1: | |
print("Sorry, reverse stepping not supported in this visualization") | |
else: | |
sliced_text = text[start:stop:step] | |
lead_space = ' '*start+'|' | |
marker = '^' + (step-1)*' ' | |
(marks, tail) = divmod(len(text)-start, step) | |
untruncated_markline = lead_space + marker*marks + 'x'*tail |
Entries | Timecodes | Subtitles | |
---|---|---|---|
1 | 00:00:00,104 --> 00:00:02,669 | Hi, I'm shell-scripting. | |
2 | 00:00:02,982 --> 00:00:04,965 | I'm not sure if it would work, | |
but I'll try it! | |||
3 | 00:00:05,085 --> 00:00:07,321 | There must be a way to do it! |
Duck* duck = [[MallardDuck alloc] init]; |
// CS345CoordinateInterface.h | |
#import <Foundation/Foundation.h> | |
@protocol CS345CoordinateInterface <NSObject> | |
@property (readonly, assign) int x; | |
@property (readonly, assign) int y; | |
-(id)initWithX:(int) initialX andY:(int) initialY; | |
+(id)coordinateWithX:(int) initialX andY:(int) initialY; | |
@end |
In Sourcetree, click the "Terminal" button to open your working directory in the Terminal
Type pico .gitignore
Replace the line that says
xcuserdata
with
*.xcscheme
xcschememanagement.*
#import "DEAppDelegate.h" | |
@implementation DEAppDelegate | |
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification | |
{ | |
// Insert code here to initialize your application | |
} | |
- (IBAction)processURL:(id)sender { |
#import <Foundation/Foundation.h> | |
FOUNDATION_EXPORT const char CLEAR_SCREEN_KEY; //The FOUNDATION_EXPORT part makes this truly global - available to all other files. | |
@interface Calculator : NSObject | |
@property (assign) int numberOnScreen; | |
-(void) clearScreen; |
2013-01-26 16:31:24.500 cs132_program_0_badams[66337:303] Hello, World! |
/** | |
@brief Demonstrate getting textual user input and adding it to an array, plus displaying array contents. | |
*/ | |
void demo_Array(void); | |
void demo_Array(void) | |
{ | |
//An array of "to do" items, which can be altered | |
NSMutableArray* todoList = nil; | |