Skip to content

Instantly share code, notes, and snippets.

View bestguy's full-sized avatar

Gary Thomas bestguy

  • San Diego, California
View GitHub Profile
@bestguy
bestguy / plate.svg
Created April 8, 2018 05:04
IBM Rift Keyboard
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bestguy
bestguy / rift60.svg
Created October 6, 2017 04:24
Rift 60% Keyboard plate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bestguy
bestguy / keymap.c
Created September 14, 2016 02:41
Atomic Keyboard keymap
#include "atomic.h"
// Fillers to make layering more clear
#define _______ KC_TRNS
#define ___T___ KC_TRNS
#define XXXXXXX KC_NO
// Layer shorthand
#define _QW 0
#define _CM 1
@bestguy
bestguy / Meetings.js
Last active December 30, 2015 08:09
Example client-side requirejs module for locally caching REST data. Uses Durandal (durandaljs.com), Knockout, and Knockout Persist plugin (https://github.com/spoike/knockout.persist)
define(function () {
var $ = require('jquery');
var http = require('plugins/http'); // Durandal plugin
var instance = null;
var ko = require('knockout');
function Meetings(maxAge) {
if (instance !== null) {
throw new Error("Cannot instantiate more than one Meetings, use Meetings.getInstance()");
}