This is the list of usage examples of Pixela | Pixelation API Service.
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
#!/bin/sh | |
user_name="user_name" | |
token="user_token" | |
graph_id="graph_name" | |
quantity=`git shortlog -sn --no-merges --since='$(date +%Y/%m/%d) 00:00:00'` | awk '{print $1}' | |
echo $quantity | |
echo "counted commits." |
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
{ | |
const rows = document.getElementsByClassName("Box-row d-flex js-wiki-history-revision"); | |
let tsv = ""; | |
for (key in rows) { | |
let row = rows[key]; | |
let title = row.children[1].children[0].innerText; | |
let author = row.children[1].children[1].children[0].innerText; | |
let datetime = row.children[1].children[1].children[1].attributes[0].value; | |
// console.log(`${title}\t${author}\t${datetime}`); | |
tsv = `${tsv}\n${title}\t${author}\t${datetime}`; |
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
{ | |
const setDigits = (number) => { | |
let string = number < 10 ? `0${number}`: `${number}`; | |
return string; | |
}; | |
const pixivTimeToDate = (pixivTime) => { | |
let date = new Date(pixivTime * 1000); | |
let dateString = `${date.getFullYear()}`; | |
dateString = `${dateString}/${setDigits(date.getMonth() + 1)}/${setDigits(date.getDate())} ${setDigits(date.getHours())}:${setDigits(date.getMinutes())}`; |
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
{ | |
let panes = document.querySelectorAll("div.list-wrapper"); | |
let alertTextArray = new Array(); | |
// console.log(panes); | |
for (pane of panes) { | |
if (!pane.classList.contains("is-idle")){ | |
let title = pane.getElementsByClassName("list-header-name-assist")[0].innerText; | |
// console.log(title); | |
let cards = pane.getElementsByClassName("list-card-details"); | |
// console.log(`${title}: ${cards.length}`) |
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
(function(){ | |
let paneTitle = "Done - Jun, 2020"; | |
let panes = document.querySelectorAll("div.list-wrapper"); | |
let tsv = []; | |
for (pane of panes) { | |
if (!pane.classList.contains("is-idle")){ | |
let title = pane.getElementsByClassName("list-header-name-assist")[0].innerText; | |
if (title === paneTitle) { | |
// console.log(`title: ${title}`); | |
let cards = pane.getElementsByClassName("list-card"); |