Skip to content

Instantly share code, notes, and snippets.

View wifeofvillon's full-sized avatar

wifeofvillon wifeofvillon

View GitHub Profile
(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");
@wifeofvillon
wifeofvillon / getPaneInfo.js
Last active March 19, 2019 05:25
JavaScript to get `${column title}: ${column card count}` strings on Trello board
{
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}`)
{
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())}`;
@wifeofvillon
wifeofvillon / getContributionHistory.js
Created February 1, 2019 03:31
JavaScript to get commit messages / author / datetime as tsv on https://github.com/${author}/${repo}/wiki/_history
{
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}`;

Steps to Get Start Flutter

as a premise

  • MacOS (10.13.4)
  • Android Studio (ver.3.1.2) has been installed

install Dart & Flutter SDK

#!/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."

One way to get the commit history of GitHub wiki on browser

It's a memorandum to get the commit history of GitHub wiki on browser by JavaScript.

overview

parse the history page(s) and generate TSV or JSON by JavaScript

code

How to Use Pixela

Memorandum about steps to create new Pixela user and graph (MacOS 10.13.4)

Create New User

I used sha256hash text as the value of token

$ shasum -a 256