This file contains hidden or 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
| 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; | |
| } |
This file contains hidden or 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
| @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 |
This file contains hidden or 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
| # -*- 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}' |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # ============================================================================== | |
| # | |
| # PDF を時計回りに 90 度回転させる | |
| # | |
| # https://github.com/mstamy2/PyPDF2 | |
| # ============================================================================== | |
| import os |
NewerOlder