Skip to content

Instantly share code, notes, and snippets.

@strburst
strburst / init.el
Created July 29, 2016 00:01
Weird error in Emacs
;;; Steps to reproduce:
;; Put init.el in ~/.emacs.d and thing-thing.el in ~/.emacs.d/lisp
;; Start Emacs
;; Observe that the following message appears:
;; error: Required feature ‘thing-thing’ was not provided
;; Observe that in the messages buffer, features contained thing-thing after
;; thing-thing.el finished executing
;; Observe that features now does not contain thing-thing
;; Observe that side-effects of the execution of thing-thing still occurred,
;; namely the creation of the variable thing-var and the printing to the
@strburst
strburst / keybase.md
Created July 26, 2016 02:58
Verification for keybase.io

Keybase proof

I hereby claim:

  • I am strburst on github.
  • I am strburst (https://keybase.io/strburst) on keybase.
  • I have a public key whose fingerprint is 4A97 7ED6 D9AF 52F2 B3B2 0626 A40A 39B9 2314 7353

To claim this, I am signing this object:

@strburst
strburst / key.js
Last active August 29, 2015 14:21
Basic key event test page
$(function() {
$('body').keydown(function(event) {
console.log('keydown event', event.which);
});
$('body').keyup(function(event) {
console.log('keyup event', event.which);
});
$('body').keypress(function(event) {
console.log('keypress event', event.which);
$(this).append(String.fromCharCode(event.which));
@strburst
strburst / lookup.html
Created March 7, 2015 22:14
Property lookup/jQuery demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>Proprty lookup demo</title>
<script src="lookup.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
</head>
<body>
<h1>Property lookup demo</h1>
@strburst
strburst / StackCalc.java
Last active October 26, 2021 23:59
Really simple stack based calculator
import java.io.File;
import java.io.FileNotFoundException;
import java.util.regex.Pattern;
import java.util.Scanner;
import java.util.Stack;
public class StackCalc {
public static void main(String[] args) {
Scanner in;
<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Allen Zheng">
<title>Georgia Tech Roommate Query Tool</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
<h1>Georgia Tech Roommate Query Tool</h1>