Curated list of my favourite Swift Library
###Carthage A simple, decentralized dependency manager for Cocoa
https://github.com/Carthage/Carthage
###Alamofire Elegant HTTP Networking in Swift
Curated list of my favourite Swift Library
###Carthage A simple, decentralized dependency manager for Cocoa
https://github.com/Carthage/Carthage
###Alamofire Elegant HTTP Networking in Swift
####Smaller APK:
| <?php | |
| class Nric_validation{ | |
| function is_NRIC($nric) | |
| { | |
| if(strlen($nric)==9) // NRIC is alway 9 Digits | |
| { | |
| $nric = strtoupper($nric); | |
| $prefix = substr($nric,0,1); | |
| $postfix = substr($nric,8,1); | |
| $ic_number = substr($nric,1,7); | 
| // icon | |
| // http://www.emoji-cheat-sheet.com/ | |
| // for test use direct message e.g. @kiichi | |
| let payload = "payload={\"channel\": \"#dev\", \"username\": \"bot\", \"icon_emoji\":\":calling:\", \"text\": \"hello\"}" | |
| let data = (payload as NSString).dataUsingEncoding(NSUTF8StringEncoding) | |
| if let url = NSURL(string: "https://hooks.slack.com/services/(your slack incoming webhook url)") | |
| { | |
| var request = NSMutableURLRequest(URL: url) | |
| request.HTTPMethod = "POST" | 
Based on Twilio Install guide
sudo apt-get update
wget https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-18-a/swift-2.2-SNAPSHOT-2015-12-18-a-ubuntu14.04.tar.gz
tar -zxvf swift-2.2-SNAPSHOT-2015-12-18-a-ubuntu14.04.tar.gz
This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.
VirtualHostX is a convenient way to manage development sites, but not required.
brew update
brew install php56
brew install php56-mcrypt
brew install mysql
| <?php | |
| function true_func() { | |
| echo "\nTRUE FUNC"; | |
| return true; | |
| } | |
| function false_func() { | |
| echo "\nFALSE FUNC"; | |
| return false; | |
| } |