I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
| infix operator ^^ { associativity left precedence 120 } | |
| func ^^<T : BooleanType, U : BooleanType>(lhs: T, rhs: U) -> Bool { | |
| return lhs.boolValue != rhs.boolValue | |
| } | |
| // Example | |
| false ^^ false // -> false | |
| false ^^ true // -> true |
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
| Como parte do processo seletivo do Elo7, gostaríamos que você fizesse uma | |
| pequena tarefa. Conforme seu resultado daremos continuidade ao processo te | |
| convidando para uma sessão de pair-programming. | |
| Durante o desenvolvimento dê preferência para implementação em Android ou iOS. | |
| O objetivo dessa tarefa é avaliar como você vai desenvolver o código em termos | |
| de estilo, eficiência e qualidade. | |
| Crie um projeto no seu Github para que vejamos os passos feitos através dos |
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
| console.log('Loading event'); | |
| // Twilio Credentials | |
| var accountSid = ''; | |
| var authToken = ''; | |
| var fromNumber = ''; | |
| var https = require('https'); | |
| var queryString = require('querystring'); |
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 sys, cv2 | |
| # Refactored https://realpython.com/blog/python/face-recognition-with-python/ | |
| def cascade_detect(cascade, image): | |
| gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
| return cascade.detectMultiScale( | |
| gray_image, | |
| scaleFactor = 1.15, | |
| minNeighbors = 5, |
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
| # BEGIN EDITABLE AREA | |
| # replace with slack hook URL for slack support | |
| SLACK_HOOK_URL="https://hooks.slack.com/services/RELACE_WITH_FULL_HOOK_URL" | |
| # check if we're running as the bot or as an archive step from xcode, change as needed | |
| if [ "${INSTALL_OWNER}" = "_xcsbuildd" ] | |
| then | |
| BETA_OUTPUT_FOLDER="/usr/local/var/www/${PRODUCT_NAME}/${FULL_VERSION}" | |
| BETA_LATEST_FOLDER="/usr/local/var/www/${PRODUCT_NAME}/latest" |
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
| ''' | |
| Taken from: | |
| http://stackoverflow.com/users/1074592/fakerainbrigand | |
| http://stackoverflow.com/questions/15401815/python-simplehttpserver | |
| ''' | |
| import SimpleHTTPServer, SocketServer | |
| import urlparse, os | |
| PORT = 3000 |
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
| #!/bin/bash | |
| # | |
| # Use agvtool to set Xcode project build number and create git tag | |
| # Note: requires Xcode project configured to use Apple Generic Versioning and git | |
| # | |
| # Usage: set_agv_ver.sh 123 | |
| # | |
| # src: https://gist.github.com/rob-murray/8644974 | |
| # |
- ASCII WWDC - WWDC session transcripts.
- NSHipster - Cocoa weekly from Mattt Thompson. Creator of AFNetworking.
- objc.io - Great resource where each issue consists of a collection posts that all focus on one over arching topic such as testing, Auto Layout, Swift, etc.
- Mike Ash - Self described as "Wizard without portfolio" Mike Ash is very widely read in the Cocoa community.
- Bill Bumgarner's Stack Overflow answers - Long time Apple developer who provides well written answers to some of the hairier questions on ObjC and iOS.
- iOS Dev Weekly - Excellent and widely read weekly that aggregates some of the best writing in the Cocoa developer community.
- Stable Kernel - Joe Conway, one of the original authors of BNR's Beginning iOS book and former BNR engineer and instructor.
- [Big Nerd Ran
This gist outlines how to resize a view when a keyboard appears using Auto Layout (there are a bunch of code samples out there that manually adjust the view's frame, but that's just so 2013). The method I outline below works universally on both iPhone and iPad, portrait and landscape, and is pretty darn simple.
The first thing to do is to define our containing view controller, the view, and the bottom constraint that we'll use to adjust its size.
Here's HeightAdjustingViewController.h. We don't need to expose any public properties, so it's pretty bare.