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
override func viewDidAppear(animated: Bool) { | |
let status = onWiFi() | |
print(status.check()) | |
} |
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
let pageRawData:NSData = try NSData(contentsOfURL: targetURL, options: []) | |
var tempData:NSDictionary = try NSJSONSerialization.JSONObjectWithData(pageRawData, options:.MutableContainers ) as! NSDictionary | |
tempData = tempData.objectForKey("query")!.objectForKey("pages") as! NSDictionary | |
tempData = tempData.objectForKey(tempData.keyEnumerator().nextObject()!) as! NSDictionary | |
let content = tempData.objectForKey("revisions")?.objectAtIndex(0).objectForKey("*") as! String | |
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
<?php | |
/** | |
* BBcode helper class | |
* | |
* @package BBcode | |
* @category Helper | |
* @author Chema <[email protected]> | |
* @copyright (c) 2012 | |
* @license GPL v3 | |
*/ |
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
<?php | |
// 地址配置 | |
$iOSAPPStoreLink = '[iOS APP Store Link here]'; | |
$AndroidLink = '[APK Link here]'; | |
function redirect($url) { | |
header('Location: ' . $url); | |
exit(); | |
} |
NewerOlder