View toesa.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
<?php | |
// setting | |
$backlog_spaceurl = "https://xxx.backlog.jp"; | |
$backlog_projectid = "PROJECTID"; | |
$backlog_apikey = "BACKLOG_APIKEY"; | |
$esa_spaceid = "ESA-ID"; | |
$esa_apikey = "ESA_APIKEY"; | |
$backlog_endpoint_wiki_list = $backlog_spaceurl . "/api/v2/wikis?projectIdOrKey=" . $backlog_projectid . "&apiKey=" . $backlog_apikey; |
View gist:05efb09dc7271a0ca0e258a1d6996e05
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
var array = $("body").text().match(/(消費税抜き .*?円)/gm); | |
var stash = []; | |
if ( array.length > 0 ) { | |
for( var i = 0; i < array.length; i++ ){ | |
stash.push( Math.floor( array[i].replace(/(消費税抜き (.*?)円)/,"$1").replace(/,/gm,"") * 1.1 ).toLocaleString() ); | |
} | |
} | |
console.log(stash.join("\n")); |