Skip to content

Instantly share code, notes, and snippets.

@erikroyall
erikroyall / .Xresources
Last active October 20, 2016 21:53
My dotfiles
xterm*termName: xterm-256color
XTerm*locale: true
XTerm*metaSendsEscape: true
Xterm*saveLines: 4096
xterm*faceName: Inconsolata
xterm*faceSize: 13
! special
*.foreground: #d0d0d0
*.background: #151515
@rlemon
rlemon / tab-reply.js
Last active March 4, 2016 14:20
tab reply
"use strict";
const input = document.getElementById('input');
const chat = document.getElementById('chat');
input.addEventListener('keydown', processKeydown);
function processKeydown(event) {
if( event.which === 9 && input.value.length === 0 ) {
event.preventDefault();
const last = getLastReply();
@erikroyall
erikroyall / evento.js
Last active September 23, 2016 17:03
A cross-browser event handling system
// Evento - v1.0.0
// by Erik Royall <erikroyalL@hotmail.com> (http://erikroyall.github.io)
// Dual licensed under MIT and GPL
// Array.prototype.indexOf shim
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
'use strict';
<!doctype html>
<html lang="en"> <!-- Set the language attribute to the language of your web page -->>
<head>
<title>HTML5 Stiff Bones</title>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Sets width to device default -->
<!-- Note: Add "maximum-scale=1.0; user-scalable=0;" attributes to viewport meta tag to prevent user scaling -->
<meta name="description" content=""> <!-- Your site's description -->
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <!-- Chrome Frame: HTML5 support for IE 7,8,9 versions -->
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000