Skip to content

Instantly share code, notes, and snippets.

@ryanqy
ryanqy / init.lua
Created October 26, 2019 12:54
hammerspoon init.lua
-- load spoons
logger = hs.logger.new("Roger", "debug")
logger.i("load hammerspoon config")
function currentSSID()
ssid = hs.wifi.currentNetwork()
if ssid == nil then
return ""
else
@ryanqy
ryanqy / cvimrc
Last active January 13, 2020 02:47
" alias ga to url chrome://apps
map ga :tabnew chrome://apps<CR>
map gw :tabnew https://chrome.google.com/webstore/category/extensions<CR>
let nextmatchpattern = "((?!first)(next|more|>|›|»|forward|后页|下一页)+)"
let previousmatchpattern = "((?!last)(prev(ious)?|newer|back|«|less|<|‹|前页|上一页)+)"
let barposition = "bottom"
set scalehints
@ryanqy
ryanqy / selenium_chrome_driver_proxy_with_authentication.py
Created January 29, 2018 13:18
selenium chrome driver proxy with authentication
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def create_proxyauth_extension(proxy_host, proxy_port,
@ryanqy
ryanqy / analyze.groovy
Created January 29, 2018 13:13
analyze gradle project dependencies
import org.apache.maven.shared.dependency.analyzer.ClassAnalyzer
import org.apache.maven.shared.dependency.analyzer.DefaultClassAnalyzer
import org.apache.maven.shared.dependency.analyzer.DependencyAnalyzer
import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalysis
import org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer
buildscript {
repositories {
mavenCentral()