Skip to content

Instantly share code, notes, and snippets.

View seanlynch's full-sized avatar
🙃

Sean Lynch seanlynch

🙃
View GitHub Profile
@seanlynch
seanlynch / online_codes.py
Created January 22, 2010 23:52
An implementation of onlne codes in Python
We couldn’t find that file to show.
From 83ba06ae2efe5a23d4b7736b5ade4a76e8746a89 Mon Sep 17 00:00:00 2001
From: Sean Lynch <seanl@literati.org>
Date: Wed, 27 Jan 2010 22:15:32 -0800
Subject: [PATCH] Make it compile on Snow Leopard
---
jit/jit-apply-x86-64.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/jit/jit-apply-x86-64.h b/jit/jit-apply-x86-64.h
%% Processes supervised by this supervisor will only exist in one
%% place in a cluster. If it goes down on any node, some node will
%% start it back up again.
-module(global_singleton_supervisor).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% @author Northscale <info@northscale.com>
%% @copyright 2009 NorthScale, Inc.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% @author Northscale <info@northscale.com>
%% @copyright 2010 NorthScale, Inc.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
#!/usr/bin/env escript
%% -*- erlang -*-
main([FileName]) ->
{ok, Bin} = file:read_file(FileName),
String = binary_to_list(Bin),
bf([], String, [], []).
bf(_, [], _, _) ->
ok;
# Makefile for TinyScheme
# Time-stamp: <2002-06-24 14:13:27 gildea>
# Windows/2000
#CC = cl -nologo
#DEBUG= -W3 -Z7 -MD
#DL_FLAGS=
#SYS_LIBS=
#Osuf=obj
#SOsuf=dll
;; Swanky!
(require 'swank-clojure-autoloads)
(setq
swank-clojure-classpath
(append
(list
"/usr/local/homebrew/Cellar/clojure/1.2.0/clojure.jar"
"/usr/local/homebrew/Cellar/clojure-contrib/1.2.0/clojure-contrib.jar")
(when (file-directory-p "~/.clojure")
@seanlynch
seanlynch / fix_ets_issue.patch
Created April 5, 2011 23:49
Patch for R14B02 to fix ets issue
diff --git a/erts/emulator/beam/erl_db_tree.c b/erts/emulator/beam/erl_db_tree.c
index 6cdbec3..a59c0c2 100644
--- a/erts/emulator/beam/erl_db_tree.c
+++ b/erts/emulator/beam/erl_db_tree.c
@@ -575,7 +575,7 @@ static int db_prev_tree(Process *p, DbTable *tbl, Eterm key, Eterm *ret)
return DB_ERROR_NONE;
}
-static ERTS_INLINE int cmp_key(DbTableTree* tb, Eterm key, Eterm* key_base,
+static ERTS_INLINE Sint cmp_key(DbTableTree* tb, Eterm key, Eterm* key_base,
@seanlynch
seanlynch / gist:5507130
Created May 3, 2013 04:01
Errors building lib32-gnome-vfs on 64 bit Arch Linux with Yaourt. Note the weird Autoconf errors at the top and the missing types and functions at the bottom.
==> Making package: lib32-gnome-vfs 2.24.4-7 (Thu May 2 20:50:15 PDT 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading gnome-vfs-2.24.4.tar.bz2...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 385 100 385 0 0 540 0 --:--:-- --:--:-- --:--:-- 540
100 1846k 100 1846k 0 0 498k 0 0:00:03 0:00:03 --:--:-- 751k
-> Found gnutls-config.patch