Skip to content

Instantly share code, notes, and snippets.

@nodaguti
nodaguti / moneyforward-automatic-expenses-categoriser.js
Last active November 26, 2022 07:43
Apply pre-defined rules to automatically categorise your expenses on MoneyForward
(() => {
const rules = [
{
content: /kindle/i,
note: /^Amazon\.co\.jp$/,
kind: '本',
},
];
async function find(selector, parent = document) {
@nodaguti
nodaguti / resource-perf-analyser.js
Created November 14, 2019 06:04
Resource Loading Performance Analyser
(() => {
// Based on:
// https://github.com/micmro/performance-bookmarklet
// MIT License Copyright (c) 2014 Michael Mrowetz
// https://github.com/micmro/performance-bookmarklet/blob/master/LICENSE
//extract a resources file type
const getFileType = (fileExtension, initiatorType) => {
if(fileExtension){
@nodaguti
nodaguti / gmail-to-slack.gs
Created May 12, 2017 07:55
Post new emails that have a certain label to a specified Slack channel
var slack = {
postUrl: 'https://slack.com/api/chat.postMessage',
token: 'xoxp-0000000000000000000000000000',
userName: 'Postman',
};
var labelToChannel = {
'slack-finance': '#finance',
'slack-financial-news': '#financial-news',
'slack-cryptocurrency': '#cryptocurrency',
@nodaguti
nodaguti / tangocho-scraper.js
Created February 9, 2017 04:07
tango-cho.com to CSV
/**
* Convert a phrase list on tango-cho.com into CSV-formatted text.
* Usage:
* i) Copy and paste into your browser's console.
* ii) Run it!
*/
(() => {
const wrappers = document.querySelectorAll('.top_list > tbody > tr');
const csv = [];
@nodaguti
nodaguti / zuknow-scraper.js
Last active February 9, 2017 04:08
zuknow.net to CSV
/**
* Convert a phrase list on zuknow.net into CSV-formatted text.
* Usage:
* i) Copy and paste into your browser's console.
* ii) Run it!
*/
(() => {
const wrappers = document.getElementsByClassName('jsc-card-wrapper');
const csv = [];

These are my Atom setting files generated by sync-settings.

Features

  • No tab bar
  • Flat design based on One Dark, and inspired by Sublime Text's Flatland Dark theme
  • Monokaki syntax colouring

Screen Shot

screen shot

@nodaguti
nodaguti / center-grammar-print-answers.js
Last active March 9, 2016 15:14
center-grammar-print-answers.js
/**
* http://karino2.livejournal.com/378477.html
* にて公開されているセンター試験英語第2問のデータから,正答を埋めた完成文を出力する.
* Usage:
* i) スクリプトと同じ階層に center-grammar.csv として CSV データを配置する.
* ii) (必要ならば) 本スクリプトを Babel で変換する.
* iii) 実行する.結果は標準出力で出力される.
*/
import fs from 'fs';
import path from 'path';
@nodaguti
nodaguti / quizlet-scraper.js
Last active March 27, 2024 06:24
Quizlet to CSV
/**
* Convert a list on Quizlet into CSV-formatted text.
* Usage:
* i) Copy and paste into your browser's console.
* ii) Run it!
*/
(() => {
const terms = document.getElementsByClassName('term');
const csv = [];