Skip to content

Instantly share code, notes, and snippets.

View JasonHK's full-sized avatar
:octocat:
GitHub forever!

Jason Kwok JasonHK

:octocat:
GitHub forever!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jasonhk on github.
  • I am jasonhk (https://keybase.io/jasonhk) on keybase.
  • I have a public key ASBgGbaMyIb4W0arX-YOGix_tEPfTEF9egMNX59T85z5ZAo

To claim this, I am signing this object:

@JasonHK
JasonHK / parseUri.groovy
Created April 29, 2019 05:02 — forked from treyturner/parseUri.groovy
Groovy: Parse a URL while including a handy map of the query string
/**
* Created by tturner on 7/22/15.
*/
import groovy.json.*
static def parseQueryString(String string) {
string.split('&').collectEntries{ param ->
param.split('=', 2).collect{ URLDecoder.decode(it, 'UTF-8') }
}
@JasonHK
JasonHK / Simple HTTP Servers.md
Last active February 15, 2019 15:59
Simple HTTP Servers

Simple HTTP Servers

@JasonHK
JasonHK / MCBBS Login Fix.user.js
Created February 10, 2019 11:04
MCBBS Login Fix
// ==UserScript==
// @name MCBBS Login Fix
// @description Fixed the annoying CAPTCHA bug when logging in to MCBBS.
// @author JasonHK
// @namespace http://jasonhk.net/
// @version 0.2-beta
// @match http*://www.mcbbs.net/*
// @run-at document-start
// @grant none
// @supportURL https://greasyfork.org/zh-TW/scripts/377605-mcbbs-login-fix
using System;
using System.Runtime.InteropServices;
// ReSharper disable SuspiciousTypeConversion.Global
// ReSharper disable InconsistentNaming
namespace VideoPlayerController
{
/// <summary>
/// Controls audio using the Windows CoreAudio API
/// from: http://stackoverflow.com/questions/14306048/controling-volume-mixer
@JasonHK
JasonHK / designer.html
Last active April 28, 2016 11:30
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {