This file contains 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 LeetCode to Github | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Commit your LeetCode submission to Github! Usage: Open a submission detail page and execute this script from the context menu. | |
// @author Zhiyong Pan | |
// @match https://leetcode.com/submissions/detail/* | |
// @match https://leetcode.com/contest/*/submissions/detail/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-1.12.4.min.js |
This file contains 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
/** | |
* Modify Cambridge Dictionary word list: | |
* 1. change the delete button's behavior, preventing it from reloading the list, | |
* to avoid losing the scrolling position; | |
* 2. move the delete button from the bottom of a item to the top of it, so that | |
* it's possible to delete a word and see the next word but not its explanation, | |
* provided that you have scrolled the deleted word's explanation to below the | |
* page bottom. | |
* | |
* Usage: run this script on word list page, a "delete" link should appear inside each word entry. |
This file contains 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
#!/bin/bash | |
# | |
# like git-am, but for svn: Apply a series of patches from a mailbox. | |
# | |
# usage: | |
# $ svn-am.sh PATCH-FILES | |
# | |
# -- | |
# panzy | |
# 2017-09-01 16:34:10 |