Skip to content

Instantly share code, notes, and snippets.

View 3110's full-sized avatar
🏠
Working from home

SAITO, Tetsuya 3110

🏠
Working from home
View GitHub Profile
@3110
3110 / amazon_to_scrapbox.js
Created April 24, 2019 15:42
アマゾンの書籍情報を元にScrapboxページを作成する。
javascript:(function() {
const project = 'https://scrapbox.io/[プロジェクト名]/'; /* 自分のプロジェクト名に変更 */
if (!window.location.href.startsWith('https://www.amazon.co.jp')) {
return;
}
const isKindle = window.location.href.indexOf('-ebook') > 0;
const title = document.body.querySelector("span[id='productTitle'], span[id='ebooksProductTitle']");
if (title === null) {
return;
}
@3110
3110 / robohon-capture.bat
Created April 13, 2019 17:27
Windowsでロボホンの画面(背面LCD・プロジェクタ)をPNGでキャプチャします。
@echo off
REM ------------------------------------------------------------------------------
REM ロボホンの画面(背面LCD・プロジェクタ)をPNGでキャプチャします。
REM
REM 以下の外部コマンドをインストールしてパスを通しておいてください。
REM * GraphicsMagick
REM http://www.graphicsmagick.org/
REM * Android Debug Bridge(ADB)
REM https://developer.android.com/studio/command-line/adb?hl=JA
@3110
3110 / scrapbox-setup-project.py
Last active April 7, 2021 01:12
Scrapboxで新たに作成したプロジェクトに自分のページとsettingsページを追加する
# -*- coding: utf-8 -*-
import json
import urllib.parse
import subprocess
OPEN_CMD = 'start' # Windows
# OPEN_CMD = 'open' # macOS
USER_NAME = 'saitotetsuya'
SCRAPBOX_URL_FORMAT = 'https://scrapbox.io/{project}/{title}?body={body}'
@3110
3110 / pr.py
Last active July 20, 2019 08:45
PDFのページを時計回りに90度回転させる
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
#
# PDF を時計回りに 90 度回転させる
#
# https://github.com/mstamy2/PyPDF2
# ==============================================================================
import os