'HTTPS:
USER_AGENT: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
HOST: tw.piliapp.com
ACCEPT: */*
ACCEPT_ENCODING: deflate, gzip
RANGE: bytes=0-524287
CONNECTION: keep-alive
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 | |
require '../../config.php'; //原本是這樣 | |
require dirname(__FILE__)."/../../config.php"; //改成這樣 |
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
if grep -q 32768 /etc/security/limits.conf; then | |
sudo sed -i -e "/^.*nofile 32768$/d" /etc/security/limits.conf | |
sudo sed -i -e "/^.*nofile 65536$/d" /etc/security/limits.conf | |
else | |
echo skip /etc/security/limits.conf; | |
fi | |
if grep -q net.core.somaxconn /etc/sysctl.conf; then | |
sudo sed -i -e "/^net.core.somaxconn.*$/d" /etc/sysctl.conf |
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
if grep -q 32768 /etc/security/limits.conf; then | |
echo skip /etc/security/limits.conf; | |
else | |
echo "* hard nofile 32768" | sudo tee -a /etc/security/limits.conf | |
echo "* soft nofile 32768" | sudo tee -a /etc/security/limits.conf | |
echo "root hard nofile 65536" | sudo tee -a /etc/security/limits.conf | |
echo "root soft nofile 65536" | sudo tee -a /etc/security/limits.conf | |
fi | |
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
240=>'240x320', | |
480=>'480x800', | |
540=>'540x960', | |
720=>'720x1280', | |
1080=>'1080x1920', | |
1440=>'1440x2560', | |
1536=>'1536x2048', | |
800=>'800x1280', | |
'wvga'=>'480x640', | |
'wxga'=>'800x1280', |
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
function ga_link_event(e, params) | |
{ | |
var _this = this, | |
ga_params = ['send', 'event'].concat(params); | |
if(e.ctrlKey || e.metaKey || e.shiftKey) | |
ga.apply(_this, ga_params); | |
else | |
{ | |
var callback = function(){ | |
clearTimeout(timer); |
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
Country | CountryCode | Currency | Code | |
---|---|---|---|---|
New Zealand | NZ | New Zealand Dollars | NZD | |
Cook Islands | CK | New Zealand Dollars | NZD | |
Niue | NU | New Zealand Dollars | NZD | |
Pitcairn | PN | New Zealand Dollars | NZD | |
Tokelau | TK | New Zealand Dollars | NZD | |
Australian | AU | Australian Dollars | AUD | |
Christmas Island | CX | Australian Dollars | AUD | |
Cocos (Keeling) Islands | CC | Australian Dollars | AUD | |
Heard and Mc Donald Islands | HM | Australian Dollars | AUD |
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
Country,CountryCode,Currency,Code | |
New Zealand,NZ,New Zealand Dollars,NZD | |
Cook Islands,CK,New Zealand Dollars,NZD | |
Niue,NU,New Zealand Dollars,NZD | |
Pitcairn,PN,New Zealand Dollars,NZD | |
Tokelau,TK,New Zealand Dollars,NZD | |
Australian,AU,Australian Dollars,AUD | |
Christmas Island,CX,Australian Dollars,AUD | |
Cocos (Keeling) Islands,CC,Australian Dollars,AUD | |
Heard and Mc Donald Islands,HM,Australian Dollars,AUD |
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
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
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 | |
function mb_str_split($string,$string_length=1) { | |
if(mb_strlen($string)>$string_length || !$string_length) { | |
do { | |
$c = mb_strlen($string); | |
$parts[] = mb_substr($string,0,$string_length); | |
$string = mb_substr($string,$string_length); | |
}while(!empty($string)); | |
} else { |