Skip to content

Instantly share code, notes, and snippets.

View jasonwoodland's full-sized avatar
💫
只要努力才能成功

Jason Woodland jasonwoodland

💫
只要努力才能成功
View GitHub Profile
カラオケソング
Mandy
Break my stride
Sooner than you think - new order
Flesh for fantasy
Makafushigi adventure
A cruel angels thesis
Just a friend biz
Lovefool
Out of touch
@jasonwoodland
jasonwoodland / notion-translate-fix.js
Last active July 16, 2021 00:25
Fix translate for Notion
// ==UserScript==
// @name Fix translate for Notion
// @author Jason Woodland (jasonwoodland)
// @include https://notion.so/*
// ==/UserScript==
m = new MutationObserver(() => {
document.querySelectorAll('[contenteditable]').forEach(e => {
e.removeAttribute('contentEditable');
e.addEventListener('dblclick', () => {
@jasonwoodland
jasonwoodland / mysql-fix-doubly-utf8-encoded-text.py
Last active January 22, 2018 09:44
Fix doubly UTF-8 encoded text in MySQL databases
#!/usr/bin/env python
import MySQLdb
import getpass
host = raw_input('Host? (default is "localhost") ') or 'localhost'
user = raw_input('User? (default is "root") ') or 'root'
passwd = getpass.getpass()
running = True
while running: