- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
#import <Foundation/Foundation.h> | |
void frequencyCounterOfWordsInSentence(NSString *sentence) | |
{ | |
NSArray *words = [sentence componentsSeparatedByString:@" "]; | |
NSMutableDictionary *wordCounterDict = [NSMutableDictionary dictionary]; | |
for(NSString *word in words) | |
{ | |
// Remove any characters from word which is not from letter character set | |
NSString *scrubbedWord = [[word componentsSeparatedByCharactersInSet:[[NSCharacterSet letterCharacterSet] invertedSet]] componentsJoinedByString:@""]; |
Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.
If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.
http://www.apple.com/osx/elcapitan-preview/
/* | |
* This is an example provided by Facebook are for non-commercial testing and | |
* evaluation purposes only. | |
* | |
* Facebook reserves all rights not expressly granted. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
# Script to codesign ipa with AdHoc or distribution certificate | |
# Execute script from the folder you have provisioning profile you want to be embedded with the IPA and name it as embedded.mobileprovision | |
# | |
# To change the bundle identifier pass it as argument to this script first argument is taken as bundle identifier, if more than one arguments are passed then its ignored | |
# usage script.sh com.appid.bundleid 1.2 45 FinalIPAName | |
echo "Start the codesigning the app" | |
mv *.ipa testapp.zip # Rename ipa file to .zip | |
tar -xf testapp.zip # unzip the file to reveal Payload folder | |
cd Payload/*.app/ # Go to Payload folder then into .app folder |
1) Algorithm Complexity - Big-O | |
2) Sorting - Merge, Insert, Bubble | |
3) Hashtables - Implement using Arrays | |
4) Trees - Binary, n-ary, trie-trees; balanced binary tree - Red/Black tree, splay tree, AVL tree | |
Tree traversal algorithm - BFS, DFS ; difference between inorder, postorder, preorder | |
5) Graphs - Representation of graphs using: objects and pointers, matrix, adjacency list | |
Graph traversal algorithm - BFS, DFS | |
A* and Dijkstra | |
6) Data Structures - NP-complete problems: traveling salesman and knapsack problem | |
7) Discrete Mathematics - combinatorics and probability |
Decrypt Binaries from AppStore IPA | |
----------------------------------- | |
* `Cydia` - Add Source - http://cydia.iphonecake.com/ | |
* `Mobile Terminal` - login root - Clutch - Clutch <appname> | |
* `/var/root/` - Location for Decrypted files | |
* `Class-dump` - `./class-dump -H <location-of-binary> -o <location-to-save-header-files>` To dump all headers | |
Inspect View-Hierarchy of Apps | |
------------------------------ | |
* CyDelete - Install CyDelete from Cydia if MobileSubstrate folder is not listed in /Library/. |
[ | |
{ | |
"itemId": "123456", | |
"definingAttributes": [ | |
{ | |
"attributeName": "Product Length (in.)", | |
"attributeValue": "10" | |
}, | |
{ | |
"attributeName": "Product Width (in.)", |
int usingSubtraction(int x) | |
{ | |
return 3-x; | |
} | |
int usingDivision(int x) | |
{ | |
return 2/x; | |
} |