Skip to content

Instantly share code, notes, and snippets.

View Afforess's full-sized avatar

Cameron McAvoy Afforess

View GitHub Profile
@jpoag
jpoag / deque.lua
Last active December 21, 2015 12:58 — forked from mebens/example.lua
-----------------------------------------------------------------------------------------------------------------------
-- linkedlist.lua - v1.0.2 (2013-08)
-- Michael Ebens - https://gist.github.com/BlackBulletIV
-- Double Linked List / Deque (Deck) Container
-- https://gist.github.com/BlackBulletIV/4084042
-----------------------------------------------------------------------------------------------------------------------
--[[
This returns an Container Creator for a Double Linked List
with Deque (Deck) method names. See example below.
@deoxxa
deoxxa / parallelworlds.json
Created March 7, 2013 20:44
SimCity (2013) Studies
// http://worlds.simcity.com/parallelworlds.json
//
// Intercepting this request and changing the "Desc" field does nothing to the
// game's UI. The name in the interface seems to come from looking up the "id"
// field against a list of names stored internally. Probably because of locale
// stuff.
//
// Note the hidden servers!
{
@magemore
magemore / gist:4499587
Created January 10, 2013 04:56
Amazon Linux AMI (Fedora) install htop
# update
sudo yum -y update
sudo yum -y upgrade
# enable EPEL6 by changing enabled=0 -> enabled=1
sudo vim /etc/yum.repos.d/epel.repo
# install htop
sudo yum install htop
@mebens
mebens / example.lua
Created November 16, 2012 04:24
Doubly linked list in Lua
require("list")
local a = { 3 }
local b = { 4 }
local l = list({ 2 }, a, b, { 5 })
l:pop()
l:shift()
l:push({ 6 })
l:unshift({ 7 })