Skip to content

Instantly share code, notes, and snippets.

View tao524's full-sized avatar
💭
I may be slow to respond.

tao524

💭
I may be slow to respond.
View GitHub Profile
@woxtu
woxtu / ocr.js
Last active October 16, 2024 01:05 — forked from doraTeX/ocr.sh
A JavaScript (JXA) to perform OCR on images/PDFs using macOS built-in OCR engine
#!/usr/bin/osascript -l JavaScript
ObjC.import("stdlib");
ObjC.import("AppKit");
ObjC.import("PDFKit");
ObjC.import("Vision");
const scriptName = $.NSProcessInfo.processInfo.arguments.objectAtIndex(3).lastPathComponent.js;
console.error = (obj) => {
@doraTeX
doraTeX / ocr.sh
Last active February 20, 2025 14:25
A shell script to perform OCR on images/PDFs using macOS built-in OCR engine -- https://doratex.hatenablog.jp/entry/20230629/1687977178
#!/bin/bash
SCRIPTNAME=$(basename "$0")
function realpath () {
f=$@;
if [ -d "$f" ]; then
base="";
dir="$f";
else
base="/$(basename "$f")";
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active October 24, 2025 03:05
Make Firefox fast again
@sepicles
sepicles / mfme_cf_csv_.js
Last active October 5, 2022 15:34
mfme_cf_csv_.js
// ==UserScript==
// @name MFME Cashflow Copy
// @namespace https://sepicles.net/
// @version 1.0
// @description MFME Cashflow Copy
// @author sepicles
// @match https://moneyforward.com/cf
// @grant none
// @require file:///e:/Dropbox/Synchro/Main/MoneyForwardME/mfme_cf_csvdl_.js
// ==/UserScript==
@sepicles
sepicles / mfme_update_home_command_.js
Last active October 5, 2022 15:35
mfme_update_home_command_.js
// ==UserScript==
// @name MFME Automatic Updating(home)
// @namespace https://sepicles.net/
// @version 1.0
// @description MFME Automatic Updating(home)
// @author sepicles
// @match https://moneyforward.com/
// @grant none
// ==/UserScript==
@sepicles
sepicles / mfme_update_home_.js
Created August 22, 2021 17:35
mfme_update_home_.js
// ==UserScript==
// @name MFME Automatic Updating(home)
// @namespace https://sepicles.net/
// @version 1.0
// @description MFME Automatic Updating(home)
// @author sepicles
// @match https://moneyforward.com/
// @grant none
// ==/UserScript==
@moyashi
moyashi / SakuraKeepaLinker.js
Last active December 20, 2022 10:42
Amazon.co.jpの商品ページにサクラチェッカーとKeepaへのリンクを追加するUserScript。Tampermonkeyで動作確認
// ==UserScript==
// @name SakuraKeepaLinker
// @namespace http://hitoriblog.com/
// @version 0.2
// @description try to take over the world!
// @author moyashi ( @hitoriblog )
// @match https://www.amazon.co.jp/*/dp/*
// @match https://www.amazon.co.jp/*/gp/*
// @match https://www.amazon.co.jp/dp/*
// @match https://www.amazon.co.jp/gp/*
@doraTeX
doraTeX / unzip.py
Last active June 5, 2025 02:41
Windowsで作られた日本語ファイル名入りのZIPアーカイブにも対応した unzip 用 Python スクリプト
#!/usr/bin/env python3
import sys
import re
from zipfile import ZipFile
from getpass import getpass
if len(sys.argv) == 1:
print("Usage: {} ZIP_FILE(S)...".format(sys.argv[0]))
exit(0)
@azu
azu / READ.md
Last active May 8, 2021 14:23
JavaScriptの本を書くときに参考にしてるもの

jsprimerというJavaScriptの書籍を書いている。 これを書いてるときに参考にしているものを書いていく。

ECMAScriptのLiving Standardな仕様書ページ。 スナップショットなECMAScriptの仕様書ページもあるけど、基本的にはLiving Standardの方しか見てない。

以下のエラーで削除も更新も出来ない場合

Error: Cask 'eclipse-jee' definition is invalid: invalid 'depends_on macos' value: ":leopard"

以下を実行する

/usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/sed -i '' '/depends_on macos:/d'