Bold text
Italic text
Quote
Bold text
Italic text
Quote
// | |
// AppDelegate.swift | |
// Life. | |
// | |
// Created by db0 on 7/11/14. | |
// Copyright (c) 2014 Rainbow Cookies. All rights reserved. | |
// | |
import UIKit |
if [ $# -lt 3 ] | |
then | |
echo $0 'font characters color size' | |
exit 1 | |
fi | |
font=$1 | |
string=$2 | |
color=$3 | |
size=$4 |
extension UIViewController { | |
func topMostViewController() -> UIViewController { | |
if self.presentedViewController == nil { | |
return self | |
} | |
if let navigation = self.presentedViewController as? UINavigationController { | |
return navigation.visibleViewController.topMostViewController() | |
} | |
if let tab = self.presentedViewController as? UITabBarController { | |
if let selectedTab = tab.selectedViewController { |
Ano desu ne, Araragi-san, | |
Kai to yu no wa buta wa yura nandesu yo | |
Futsu, utae no rueda kimite ireba indesu. Sotto da genjitsutoyu monodesu. | |
Shiranakia shiranai houhou wa ii koto nandesu yo. | |
Mushiro, kai o shiru koto de shiranai koto afueta dake no koto nan desuyo. |
1) Do you have a physical or mental disorder; or are you a drug abuser or addict; or do you currently have any of the following diseases: * | |
Yes No | |
Chancroid | |
Gonorrhea | |
Granuloma Inguinale | |
Leprosy, infectious | |
Lymphogranuloma venereum | |
Syphilis, infectious | |
Active Tuberculosis | |
2) Have you ever been arrested or convicted for a crime that resulted in serious damage to property, or serious harm to another person or government authority? * |
// Handle response with Alamofire | |
request.responseJSON { (request, response, data, error) in | |
switch (response, data) { | |
case (.Some(let response), .Some(let data)): | |
let json = JSON(data) | |
if response.statusCode >= 200 && response.statusCode < 300 { | |
verbose("API Success") | |
verbose("API Response: \(json)", level: 3) | |
return cbSuccess(json) |