Skip to content

Instantly share code, notes, and snippets.

View karlding's full-sized avatar
🤔

Karl Ding karlding

🤔
View GitHub Profile
#include <stdint.h>
#include <stdbool.h>
int main() {
union {
struct {
bool bit0 : 1;
bool bit1 : 1;
bool bit2 : 1;
bool bit3 : 1;
@karlding
karlding / xkcd-enhancements.user.js
Last active October 22, 2015 21:27
Allows you to use arrow keys to navigate on XKCD
// ==UserScript==
// @name XKCD Arrow Keys
// @namespace http://github.com/karlding
// @version 0.1
// @description Allows you to use arrow keys to navigate on XKCD
// @author Karl Ding
// @match http*://xkcd.com/*
// @grant none
// ==/UserScript==
@karlding
karlding / reddit-legacy-search.user.js
Created September 30, 2015 06:00
Force reddit to use the Legacy Search mode (by adding the feature=legacy_search URI parameter) to reddit searches.
// ==UserScript==
// @name reddit Legacy Search
// @namespace http://github.com/karlding
// @version 0.1
// @description Force the Legacy Search mode by adding the `feature=legacy_search` URI parameter to reddit searches
// @author Karl Ding
// @match *://*.reddit.com/*
// @grant none
// ==/UserScript==
@karlding
karlding / DisableNarrator.reg
Created September 25, 2015 16:13
Prevent Narrator (and Windows Assistive Technology Manager) From Starting
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Narrator.exe]
"Debugger"="%1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\AtBroker.exe]
"Debugger"="%1"
@karlding
karlding / hipchat-hide-previews.user.js
Created July 22, 2015 01:29
Hide media previews (video and images) in the HipChat web client
// ==UserScript==
// @name HipChat Hide Media Previews
// @namespace github.com/karlding
// @version 0.1.0
// @description Hide Media Previews (video and images) in the HipChat web client
// @author Karl Ding
// @match https://*.hipchat.com/chat/*
// @license MIT
// ==/UserScript==