Skip to content

Instantly share code, notes, and snippets.

View staticfloat's full-sized avatar

Elliot Saba staticfloat

View GitHub Profile
@staticfloat
staticfloat / brew --config
Created August 24, 2012 21:36
errors on errors
HOMEBREW_VERSION: 0.9.2
HEAD: 22e786528e240ec4fda3b93b345da096e63bc7da
HOMEBREW_PREFIX: /Users/sabae/.homebrew
HOMEBREW_CELLAR: /Users/sabae/.homebrew/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8.1-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
GCC-4.0: N/A
GCC-4.2: build 5666
{ scopeName = 'source.julia';
firstLineMatch = '^#!/usr/bin/env\s+julia\s*$';
fileTypes = ( 'j', 'jl', 'jul', 'julia' );
foldingStartMarker = '^\s*(?:if|while|for|begin|function|macro|module|type|let)\b(?!.*\bend\b).*$';
foldingStopMarker = '^\s*(?:end)\b.*$';
patterns = (
{ include = '#function_decl'; },
{ include = '#function_call'; },
{ include = '#type_decl'; },
{ include = '#keyword'; },
{ scopeName = 'source.julia';
firstLineMatch = '^#!/usr/bin/env\s+julia\s*$';
fileTypes = ( 'j', 'jl', 'jul', 'julia' );
foldingStartMarker = '^\s*(?:if|while|for|begin|function|macro|module|type|let)\b(?!.*\bend\b).*$';
foldingStopMarker = '^\s*(?:end)\b.*$';
patterns = (
{ include = '#function_decl'; },
{ include = '#function_call'; },
{ include = '#type_decl'; },
{ include = '#keyword'; },
@staticfloat
staticfloat / glpk.h.diff
Created September 30, 2012 06:52
julia glpk.h makefile patch
diff --git a/extras/Makefile b/extras/Makefile
index 0c4a0fd..d6edb9f 100644
--- a/extras/Makefile
+++ b/extras/Makefile
@@ -8,7 +8,7 @@ GLPK_VER = 4.47
GLPK_CONST = 0x[0-9a-fA-F]+|[-+]?\s*[0-9]+
ifeq ($(USE_SYSTEM_GLPK), 1)
-GLPK_PREFIX = /usr/include
+GLPK_PREFIX = `brew --prefix`/include
@staticfloat
staticfloat / make.inc.diff
Created September 30, 2012 06:54
julia make.inc openblas patch
diff --git a/Make.inc b/Make.inc
index b1fbf99..2d74730 100644
--- a/Make.inc
+++ b/Make.inc
@@ -170,8 +170,8 @@ endif
ifeq ($(USE_SYSTEM_BLAS), 1)
ifeq ($(OS), Darwin)
-LIBBLAS = -framework vecLib -lBLAS
-LIBBLASNAME = libblas
@staticfloat
staticfloat / deps.Makefile.diff
Last active October 11, 2015 04:57
julia deps makefile patch
diff --git a/deps/Makefile b/deps/Makefile
index 16d503b..4a8a807 100644
--- a/deps/Makefile
+++ b/deps/Makefile
@@ -654,7 +654,7 @@ distclean-suitesparse: clean-suitesparse
# SUITESPARSE WRAPPER
ifeq ($(USE_SYSTEM_SUITESPARSE), 1)
-SUITESPARSE_INC = -I /usr/include/suitesparse
+SUITESPARSE_INC = -I $(brew --prefix)/include
@staticfloat
staticfloat / brew-config.log
Created October 4, 2012 17:26
Python sqlite error logs
$ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: e1fb23b964bde191fae188612d02bbc861b7c877
HOMEBREW_PREFIX: /Users/sabae/.homebrew
HOMEBREW_CELLAR: /Users/sabae/.homebrew/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8.2-x86_64
Xcode: 4.5
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
const ANCHORED = int32(0x00000010)
const AUTO_CALLOUT = int32(0x00004000)
const BSR_ANYCRLF = int32(0x00800000)
const BSR_UNICODE = int32(0x01000000)
const CASELESS = int32(0x00000001)
const CONFIG_BSR = int32(8)
const CONFIG_JIT = int32(9)
const CONFIG_JITTARGET = int32(11)
const CONFIG_LINK_SIZE = int32(2)
const CONFIG_MATCH_LIMIT = int32(4)
@staticfloat
staticfloat / python install cc.log
Created October 5, 2012 15:40
Superenv python install log
[/Users/sabae/.homebrew/Library/ENV/4.3/cc -sa] xcrun clang --version -isystem/Users/sabae/.homebrew/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/ -I/Users/sabae/.homebrew/opt/readline/include -L/Users/sabae/.homebrew/opt/readline/lib -L/Users/sabae/.homebrew/lib -L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
[/Users/sabae/.homebrew/Library/ENV/4.3/cc -sa] xcrun clang -v -isystem/Users/sabae/.homebrew/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/ -I/Users/sabae/.homebrew/opt/readline/include -L/Users/sabae/.homebrew/opt/readline/lib -L/Users/sabae/.homebrew/lib -L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
[/Users/sabae/.homebrew/Library/ENV/4.3/cc -sa] xcrun clang -V -isystem/Users/sabae/.homebrew/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/ -I/Users
@staticfloat
staticfloat / WELL.jl
Created October 13, 2012 08:50
First attempt at implementation of WELL512a in Julia
index = 0
state = [randi(Uint32) for x = 1:16]
function getstate(index)
global state
return state[index + 1]
end
function WELL()
global index
z0 = getstate((index+15) & 0x0000000f)