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
repos={repositorys} | |
target={target} | |
output={output} | |
name=$1 | |
suffix=$2 | |
from=$3 | |
to=$4 | |
repo=${repos}/${name} |
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
# cache | |
.DS_Store | |
Thumb.db | |
# log | |
*.log | |
# npm | |
node_modules |
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
SetEnvIf User-Agent "^facebookexternalhit" facebook | |
SetEnvIf User-Agent "^Twitterbot" twitter | |
SetEnvIf User-Agent "^mixi-check" mixi | |
SetEnvIf User-Agent "Android" android | |
SetEnvIf User-Agent "\(\+https:\/\/developers\.google\.com\/\+\/web\/snippet\/" google | |
Satisfy Any | |
Order Deny,Allow | |
Deny from all |
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 | |
// リクエスト形式によってはヘッダーに入ってこないので削除 | |
if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || | |
$_SERVER['HTTP_X_REQUESTED_WITH'] !== 'XMLHttpRequest') { | |
die(json_encode(array('status' => "Invalid call."))); | |
} | |
setlocale(LC_ALL, 'ja_JP.UTF-8'); | |
// application/json の POST リクエストの場合は、$_POST に入ってこないので以下から取得 | |
// $params = json_decode(file_get_contents('php://input'), true); | |
if($_SERVER['REQUEST_METHOD'] !== 'POST') { |
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 | |
if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || | |
$_SERVER['HTTP_X_REQUESTED_WITH'] !== 'XMLHttpRequest') { | |
die(json_encode(array('status' => "Invalid call."))); | |
} | |
$value = array( | |
array('id' => 0, 'name' => 'taro', 'age' => '25'), | |
array('id' => 0, 'name' => 'jiro', 'age' => '20'), | |
); | |
header('Content-Type: application/json; charset=UTF-8'); |
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 | |
setlocale(LC_ALL, 'ja_JP.UTF-8'); | |
function get_csv_search_to_map($csv, $search_key, $search_val) { | |
$csv = ereg_replace("\r\n|\r|\n", "\n", $csv); | |
$csv = mb_convert_encoding($csv, 'UTF-8', 'sjis-win'); | |
$temp = tmpfile(); | |
$meta = stream_get_meta_data($temp); | |
fwrite($temp, $csv); | |
rewind($temp); | |
$file = new SplFileObject($meta['uri']); |
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 | |
setlocale(LC_ALL, 'ja_JP.UTF-8'); | |
function csv_to_map($csv) { | |
$csv = ereg_replace("\r\n|\r|\n", "\n", $csv); | |
$csv = mb_convert_encoding($csv, 'UTF-8', 'sjis-win'); | |
$temp = tmpfile(); | |
$meta = stream_get_meta_data($temp); | |
fwrite($temp, $csv); | |
rewind($temp); | |
$file = new SplFileObject($meta['uri']); |
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 | |
if($_SERVER['SERVER_NAME'] === 'xxxxx.xxx' && | |
(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || | |
$_SERVER['HTTP_X_REQUESTED_WITH'] !== 'XMLHttpRequest')) { | |
die(json_encode(array('status' => "Invalid call."))); | |
} | |
setlocale(LC_ALL, 'ja_JP.UTF-8'); | |
function csv_to_map($csv) { | |
$csv = ereg_replace("\r\n|\r|\n", "\n", $csv); | |
$csv = mb_convert_encoding($csv, 'UTF-8', 'sjis-win'); |
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
{ | |
"blocks": false, | |
"brackets": "never", | |
"colons": "never", | |
"colors": "always", | |
"commaSpace": "always", | |
"commentSpace": "always", | |
"cssLiteral": "never", | |
"customProperties": [], | |
"depthLimit": false, |
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
{ | |
"[javascript]": { | |
"editor.formatOnSave": true, | |
}, | |
"[typescript]": { | |
"editor.formatOnSave": true, | |
}, | |
} |
OlderNewer