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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ |
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
http://carlosbecker.com/java-best-practices/#/basics/other-language-basics |
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
NSArray * bruteForceProduct(NSArray *array) { | |
NSMutableArray *outputArray = [NSMutableArray arrayWithCapacity:[array count]]; | |
for (NSInteger i = 0 ; i < [array count]; i++) { | |
NSInteger currentNumber = 1; | |
for (NSInteger j = 0 ; j < [array count] ; j++) { | |
if ( i != j ) { | |
currentNumber *= [array[j] integerValue]; | |
} |
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
2009 - Mastering iPhone Scroll Views | |
UIScrollView Basics | |
2010 - Designing Apps with Scroll Views | |
Photo browsing | |
Tiling | |
2011 - Advanced Scroll View Techniques | |
Infinite scrolling | |
Stationary header views |
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
printFizzBuzzWithEndNumber(100); | |
void printFizzBuzzWithEndNumber(int endNumber) { | |
if (endNumber > 1) | |
{ | |
printFizzBuzzWithEndNumber(endNumber-1); | |
} | |
// reminder > 0 = true reminder = 0 = false | |
BOOL isDividedBy3 = !(endNumber % 3); |
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
printFizzBallWithNumber(1 , 100); | |
void printFizzBallWithNumber(int startNumber, int endNumber) { | |
if (startNumber <= endNumber) { | |
int i = startNumber; | |
// | |
if ( i % 3 == 0 || i % 5 == 0 ) { |
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
for (int i = 1 ; i <= 100; i++) { | |
if ( i % 3 == 0 || i % 5 == 0 ) { | |
if (i % 3 == 0 && i % 5 == 0 ) { | |
NSLog(@"FizzBuzz"); | |
} | |
else { | |
if (i % 3 == 0) { | |
NSLog(@"Fizz"); |
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
// | |
// VoiceOverServiceManager.m | |
// testSqq | |
// | |
// Created by chris on 12/1/15. | |
// Copyright (c) 2015 Green Tomato. All rights reserved. | |
// | |
#import "VoiceOverServiceManager.h" |