Skip to content

Instantly share code, notes, and snippets.

View nornagon's full-sized avatar

Jeremy Rose nornagon

View GitHub Profile
@samnm
samnm / Octocat!
Created November 28, 2012 00:47
Put this at the end of your .bash_profile
cat ~/.octocat
(curl https://api.github.com/octocat > ~/.octocat &) 2> /dev/null
@sartak
sartak / a.md
Last active March 22, 2024 22:16
Anki 2 annotated schema
@nornagon
nornagon / atom.coffee
Created November 12, 2011 05:25
Tiny canvas game framework
window.atom = atom = {}
atom.input = {
_bindings: {}
_down: {}
_pressed: {}
_released: []
bind: (key, action) ->
@_bindings[key] = action
@paulirish
paulirish / data-markdown.user.js
Last active February 6, 2024 10:41
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@kovrov
kovrov / main.c
Created October 13, 2011 13:20
Mac OS X Lion OpenGL Core Profile (CGLChoosePixelFormat)
/* gcc -framework OpenGL main.c */
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl3.h>
#include <stdio.h>
int main(int argc, char **argv)
{
CGLContextObj ctx;
CGLPixelFormatObj pix;