Skip to content

Instantly share code, notes, and snippets.

@Eonblast
Eonblast / index.html
Last active December 13, 2015 19:18
Erlvolt xkcd
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg);">
<scene id="scene1">
<label t="translate(0,346)">
@Eonblast
Eonblast / install-r15b01-centos5.7.sh
Created June 12, 2012 15:06
Script to install Erlang R15B01 (tested on a fresh CentOS 5.7 (Final) install w/Plesk)
# You will need to make this file executable (chmod u+x) and have sudo rights
sudo yum install gcc glibc-devel make ncurses-devel openssl-devel autoconf
rm otp_src_R15B01.tar.gz*
wget http://erlang.org/download/otp_src_R15B01.tar.gz
tar zxvf otp_src_R15B01.tar.gz
cd otp_src_R15B01
./configure && make && sudo make install
@Eonblast
Eonblast / install-r15b.sh
Created June 12, 2012 13:57 — forked from rkmax/install-r15b.sh
Script to install Erlang R15B (tested on a fresh Ubuntu 11.10 install)
# You will need to make this file executable (chmod u+x) and run it with sudo
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
mkdir -p /src/erlang
cd /src/erlang
wget http://www.erlang.org/download/otp_src_R15B.tar.gz
tar -xvzf otp_src_R15B.tar.gz
chmod -R 777 otp_src_R15B
cd otp_src_R15B
./configure
make
@Eonblast
Eonblast / Lua-5.2-len.lua
Created January 5, 2011 10:34
Intuitive list cases
t = { }
assert(t, 0)
t = { nil, nil }
assert(t, 0)
t = { nil, nil, nil }
assert(t, 0)
t = { nil, 'foo', nil }
@Eonblast
Eonblast / Lua-5.2-len diff
Created January 5, 2011 10:27
Diff Lua 5.2.2.0 alpha to Lua + len
$ diff -r lua-5.2.0-alpha lua-len/
diff -r lua-5.2.0-alpha/src/lapi.c lua-straight/src/lapi.c
725c725
< setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1);
---
> setobj2t(L, hvalue(t), luaH_set(L, hvalue(t), L->top-2), L->top-1); /*+ get & set +*/
738c738
< setobj2t(L, luaH_setint(L, hvalue(o), n), L->top-1);
---
> setobj2t(L, hvalue(o), luaH_setint(L, hvalue(o), n), L->top-1); /*+ get & set +*/