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
executeInBackground((data) => { | |
return data.element.linkHref | |
? commandOpenLinkInNewTab(data) | |
: commandNewTab(data); | |
}, [data]).catch((e) => { | |
console.error(e); | |
}); |
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
executeInBackground(async (data) => { | |
return browser.windows.create({url: data.element.linkHref}); | |
}, [data]).catch((e) => { | |
console.error(e); | |
}); |
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
import argparse | |
import re | |
import sys | |
PAT = re.compile(r'^\*\.?(\w+):\s+#([a-fA-F0-9]{6})') | |
MAPPING = { | |
'cursorColor': 'CursorColour', | |
'background': 'BackgroundColour', | |
'foreground': 'ForegroundColour', |
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 Lyric Select | |
// @namespace github.com/mavc | |
// @include http://www.kasi-time.com/* | |
// @include http://j-lyric.net/* | |
// @include https://www.uta-net.com/* | |
// @version 1.0 | |
// @grant unsafeWindow | |
// ==/UserScript== |
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
package alg; | |
import java.util.Arrays; | |
import java.util.Collection; | |
public class BinaryHeap<T extends Comparable<? super T>> { | |
private Object[] m_itemArray; | |
private int m_length; | |
private int m_capacity; |
OlderNewer