Skip to content

Instantly share code, notes, and snippets.

@wendal
wendal / test.java
Created August 28, 2012 05:13
获取Classpath中所有jar的路径
public static void main(String[] args) throws Throwable {
Enumeration<URL> urls = SimpleDaoTest.class.getClassLoader().getResources("META-INF/MANIFEST.MF");
while (urls.hasMoreElements()) {
URL url = (URL) urls.nextElement();
System.out.println(url);
}
}
@gxfxyz
gxfxyz / karabiner_switch_input_source.json
Created May 19, 2019 05:22
Karabiner-Elements config: switch input source | 输入法切换
{
"title": "Switch input source | 输入法切换",
"rules": [
{
"description": "Tap Command_L (⌘) → Switch input source to English | 短按左 Command (⌘) → 切换到英文输入法",
"manipulators": [
{
"conditions": [
{
"input_sources": [