This file contains 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(); | |
} |
This file contains 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 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 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 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
proxy_cache_path /var/www/cache/moegirl levels=1:2 keys_zone=moegirlproxy:20M inactive=1y max_size=20g; | |
#萌百压图反向代理 | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name img.rabbitcdn.com; | |
limit_conn limit_addr 30; |
This file contains 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 java.util.Collections; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.util.Map; | |
import java.util.HashMap; | |
import java.util.Set; | |
import java.util.HashSet; | |
import java.util.Random; | |
// Michael Chen |
This file contains 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
/////////////////////////////////// | |
// Mux | |
/////////////////////////////////// | |
//Mux 1-bit | |
module yMux1(z, a, b, c); | |
output z; | |
input a, b, c; | |
wire notC, upper, lower; | |
not my_not(notC, c); | |
and upperAnd(upper, a, notC); |
This file contains 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
package quiz4; | |
import java.io.PrintStream; | |
import java.util.Scanner; | |
import quiz4.BinarySortedTree.Node; | |
/** | |
* This class encapsulates a binary search tree. |
This file contains 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
package quiz4; | |
import java.util.Random; | |
import java.util.Scanner; | |
/** | |
* BinarySortedTree for EECS2030 | |
* | |
* @author chen256 | |
* |
This file contains 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
"details.scrollview.channel" = "订阅渠道"; // ?????? | |
"details.scrollview.errorreport" = "错误反馈"; // ?????? | |
"p.t1" = "放送提示"; // ?????? | |
"p.n1" = "%@ 放送了『 %@ 』的第%@集"; /*new episode*/ | |
"push.want" = "想看"; // ?????? | |
"push.watched" = "已看"; // ?????? |
OlderNewer