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 twd97_to_latlng($x, $y) { | |
$a = 6378137.0; | |
$b = 6356752.314245; | |
$lng0 = 121 * M_PI / 180; | |
$k0 = 0.9999; | |
$dx = 250000; | |
$dy = 0; | |
$e = pow((1 - pow($b, 2) / pow($a, 2)), 0.5); |
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
{ | |
"af": "Afrikaans", | |
"am": "Amharic", | |
"ar": "Arabic", | |
"az": "Azerbaijani", | |
"be": "Belarusian", | |
"bg": "Bulgarian", | |
"bn": "Bengali", | |
"bs": "Bosnian", | |
"ca": "Catalan", |
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 | |
$path = call_user_func(function() { | |
global $argv; | |
return isset($argv[1]) === true ? | |
$argv[1] : | |
'.'; | |
}); | |
function findJSONFiles($path) { |
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 | |
$targets = array_slice($argv, 1); | |
foreach ($targets as $target) { | |
$map = array(); | |
foreach (explode("\n", file_get_contents($target)) as $line) { | |
if (isset($map[$line]) === true) { | |
continue; | |
} |
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
/// <loc filename="Metadata\base_loc_oam.xml" format="messagebundle" /> | |
/*! | |
© Microsoft. All rights reserved. | |
This library is supported for use in Windows Store apps only. | |
Build: 1.0.9200.20498.win8_ldr.120817-1716 | |
Version: Microsoft.WinJS.1.0 | |
*/ |
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
[ | |
[ | |
"CN:zh-Hans", | |
"中文 | 中国", | |
"CN", | |
"zh-Hans" | |
], | |
[ | |
"TW:zh-Hant", | |
"中文 | 台灣", |
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() { | |
var div = document.createElement('div'); | |
div.style.cssText = [ | |
'position: fixed', | |
'bottom: 10px', | |
'right: 10px', | |
'padding: 10px', | |
'background: yellow', | |
'z-index: 2147483647' |
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 | |
define('NICKNAME', 'abc'); | |
define('PASSWORD', 'iamabc'); | |
define('USER_ID', '123456'); | |
$message = 'Hello World!'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); |
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
Afghanistan | AF | AFG | |
---|---|---|---|
Aland Islands | AX | ALA | |
Albania | AL | ALB | |
Algeria | DZ | DZA | |
American Samoa | AS | ASM | |
Andorra | AD | AND | |
Angola | AO | AGO | |
Anguilla | AI | AIA | |
Antarctica | AQ | ATA | |
Antigua and Barbuda | AG | ATG |
NewerOlder