Skip to content

Instantly share code, notes, and snippets.

View semmypurewal's full-sized avatar

Semmy Purewal semmypurewal

View GitHub Profile
@semmypurewal
semmypurewal / test.c
Last active January 7, 2019 14:22
Duktape 'cannot push beyond allocated stack'
#include "duktape/src/duktape.h"
// #include <SDL2/SDL.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@semmypurewal
semmypurewal / mini-eshell.el
Created November 24, 2014 18:49
open-mini-eshell
;; open up a mini-eshell
(defun quarter-window-vertically ()
"create a new window a quarter size of the current window"
(split-window-vertically)
(other-window 1)
(split-window-vertically)
(other-window -1)
(delete-window)
)
@semmypurewal
semmypurewal / gist:3940437
Created October 23, 2012 18:12
simplification of failing multigraph test
it("should be able to set/get the 'linecolor' option", function () {
var r = new FillRenderer();
expect(function () {
r.setOption("linecolor", window.multigraph.math.RGBColor.parse("0x123456"));
}).not.toThrow();
});