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 | |
class Index | |
{ | |
public function __construct() | |
{ | |
$smarty->registerPlugin('function', 'filemtime', array($this, 'smarty_function_filemtime')); | |
} | |
public function smarty_function_filemtime($params, $smarty) | |
{ | |
$file = $params['file']; |
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 | |
class DisplayManager | |
{ | |
function __construct() | |
{ | |
$this->_smarty->registerPlugin('function', 'filemtime', array($this, 'smarty_function_filemtime')); | |
} | |
public function smarty_function_filemtime($params, $smarty) | |
{ |
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
qt.insertContent = function(content) { | |
var sel, startPos, endPos, scrollTop, text, canvas = document.getElementById(wpActiveEditor), event; | |
if ( !canvas ) { | |
return false; | |
} | |
if ( document.selection ) { //IE | |
canvas.focus(); | |
sel = document.selection.createRange(); |
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
$.post({ | |
url: 'makecsv.php', | |
dataType: 'json', | |
data: { | |
data: data | |
} | |
}).done(function(response){ | |
if(response != ''){ | |
let uInt8List; | |
let code = $('#result-output-encode').val(); |
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 | |
class makeCsv | |
{ | |
public function arrangeData() | |
{ | |
try { | |
//サンプルデータ | |
//$_POST['data'] | |
$post_data = [ | |
['お客様ID', '購入金額', '購入日付'], |
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
javascript: | |
var a = location.href.match(/watch\/([^\/]+)/)[1]; | |
var t = document.title.replace(/ - ニコニコ動画/,''); | |
var l='<script type="application/javascript" src="https://embed.nicovideo.jp/watch/'+a+'/script?w=720&h=480"></script><noscript><a href="https://www.nicovideo.jp/watch/'+a+'">'+t+'</a></noscript>'; | |
prompt("code",l); | |
void(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
javascript:var a = location.href.match(/watch\/([^\/]+)/)[1];var t = document.title.replace(/ - ニコニコ動画/,'');var l='<script type="application/javascript" src="https://embed.nicovideo.jp/watch/'+a+'/script?w=720&h=480"></script><noscript><a href="https://www.nicovideo.jp/watch/'+a+'">'+t+'</a></noscript>';prompt("code",l);void(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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>JavaScriptでデータからCSVファイルを生成しダウンロードさせる</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<button type="button" onClick="createAndDownloadCsv()">CSVダウンロード</button> | |
<script> |
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 | |
$client = new \GuzzleHttp\Client(); | |
$res = $client->post( | |
'https://hoge/issues.json', | |
[ | |
'json' => [ | |
'key' => $api_key | |
,'issue' => [ | |
'project_id' => 1 | |
,'subject' => '題名サンプル' |
NewerOlder