Skip to content

Instantly share code, notes, and snippets.

View satour's full-sized avatar
💭
I may be slow to respond.

Satoru Ishikawa satour

💭
I may be slow to respond.
View GitHub Profile
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>震えるサカバンバスピス</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.buruburu {
(function () {
'use strict'
function Report (商品名, 資産評価額, 資産取得額, 効率) {
this.商品名 = 商品名
this.資産評価額 = 資産評価額
this.資産取得額 = 資産取得額
this.効率 = 効率
}
var 配列 = []
<script type="text/javascript">
var tdSetting = {
host: 'in.treasuredata.com',
writeKey: 'PLACEHOLDER',
database: 'PLACEHOLDER',
startInSignedMode: true,
_sdk: '2.2.0',
_sdkMethods: ["blockEvents","unblockEvents","setSignedMode","setAnonymousMode","resetUUID","fetchServerCookie","addRecord","fetchGlobalID","fetchUserSegments","set","trackEvent","trackPageview","trackClicks","ready"]
}
<script type="text/javascript">
var tdSetting = {
host: 'in.treasuredata.com',
writeKey: 'PLACEHOLDER',
database: 'PLACEHOLDER',
startInSignedMode: true,
_sdk: '2.2.0',
_sdkMethods: ["blockEvents","unblockEvents","setSignedMode","setAnonymousMode","resetUUID","fetchServerCookie","addRecord","fetchGlobalID","fetchUserSegments","set","trackEvent","trackPageview","trackClicks","ready"]
}
#!/usr/bin/python
# taken from https://gist.github.com/dergachev/7028596#gistcomment-3151122/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
#
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
<title>HELLO, TESTER</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script>
</script>
let txt = "";
document.querySelectorAll('.ReactVirtualized__Grid__innerScrollContainer')[0].childNodes.forEach(function(el) {
txt = txt + el.childNodes[2].firstChild.innerText + ' ' + el.childNodes[3].firstChild.innerText + ',\n'
})
console.log(txt)
var csv = '\"Name\",\"URL\",\"Owner\",\"Database\",\"Destination\",\"Schedule\",\"Updated\",\"Last Run\"\n';
document.querySelectorAll('.ReactVirtualized__Table__row').forEach(function(element) {
let name = element.firstChild.firstChild.firstChild.title;
let url = element.firstChild.firstChild.firstChild.href;
let owner = element.firstChild.firstChild.childNodes[1].firstElementChild.innerText;
let db = element.firstChild.firstChild.childNodes[1].childNodes[1].innerText;
let dest = element.childNodes[1].innerText;
let sched = element.childNodes[2].innerText;
let upd = element.childNodes[3].innerText;
var dbcsv = '\"Name\",\"URL\", \"Owner\", \"Size\", \"Tables\", \"Records\", \"Last Imported\", \"Permission\"\n';
document.querySelectorAll('.ReactVirtualized__Table__row').forEach(function(element) {
let name = element.firstChild.firstChild.firstChild.title;
let url = element.firstChild.firstChild.firstChild.href;
let owner = element.firstChild.firstChild.childNodes[1].firstElementChild.innerText;
let size = element.firstChild.firstChild.childNodes[1].childNodes[1].innerText;
let tables = element.childNodes[1].innerText;
let records = element.childNodes[2].innerText;
let li = element.childNodes[3].innerText;
/*
https://console.treasuredata.com/app/workflows
上記に表示されているワークフローの情報をcsv形式で出力するスクリプトです。
開発者ツールのコンソールにコピー&ペーストして実行してください。
Treasure Data の仕様上、画面に表示されていないワークフローの情報が取得できない為、すべてのワークフローの行が画面に表示されるように、ブラウザのサイズを調整してから実行してください。
※Webブラウザの開発者ツールを表示→画面サイズで縦を 5000 などの大きな数値に設定するとすべてのワークフローの行が画面に表示されると思われます。
*/
var wfcsv = '\"workflow_name\", \"project_name\", \"last_attempt\", \"schedule\", \"next_attempt\"\n';
document.querySelectorAll('.ReactVirtualized__Table__row').forEach(function(element) {