Skip to content

Instantly share code, notes, and snippets.

View toesa.php
<?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;
@riatw
riatw / gist:05efb09dc7271a0ca0e258a1d6996e05
Created Sep 13, 2019
サイト内の税抜き価格から税込み金額を計算する
View gist:05efb09dc7271a0ca0e258a1d6996e05
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"));