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
const ligature = { | |
ni: "冪", // ㄇㄧˋ | |
bi: "娣", // ㄉㄧˋ | |
ai: "趯", // ㄊ一ˋ | |
}, mapping = { | |
m: "ㄇㄟ", | |
n: "ㄇ", | |
c: "ㄈ", | |
b: "ㄉ", | |
a: "ㄊ", |
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
// ==UserScript== | |
// @name Export Google Bookmarks | |
// @namespace hyww@github | |
// @match https://www.google.com/bookmarks/lookup* | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @grant GM.getValue | |
// @grant GM.setValue | |
// @version 1.0 | |
// @author hyww |
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
/* ==UserStyle== | |
@name Slack's lack | |
@namespace gist.github.com/hyww/53de2ca640686bdb5a852b4d4edf24db | |
@updateURL https://gist.githubusercontent.com/hyww/53de2ca640686bdb5a852b4d4edf24db/raw/slackslack.user.css | |
@version 0.7.3 | |
@description For users who is using slack in browser and doesn't like theses changes: https://slackhq.com/simpler-more-organized-slack https://slack.com/blog/productivity/a-redesigned-slack-built-for-focus | |
@author hyww | |
==/UserStyle== */ | |
@-moz-document domain("app.slack.com") { |
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 python3 | |
import requests | |
import sys | |
import re | |
def getVideo(url): | |
result = re.search(".*https?:\/\/twitter\.com\/.+\/status\/(\d+).*", url) | |
if result == None: | |
return "URL should be in format: https://twitter.com/<user>/status/<id>" | |
id = result.group(1) |