Skip to content

Instantly share code, notes, and snippets.

View waTeim's full-sized avatar

Jeff Waller waTeim

View GitHub Profile
@waTeim
waTeim / BuildJuliaLLVMforCXX
Last active August 29, 2015 14:25
Combining Cxx and embedding in Julia
bizarro% make install
/Users/jeffw/src/julia/llvm-svn/contrib/install.sh 755 /Users/jeffw/src/julia/llvm-svn/usr/bin/julia* /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5/bin/
cp -a /Users/jeffw/src/julia/llvm-svn/usr/libexec /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5
# Copy over .dSYM directories directly
cp -a /Users/jeffw/src/julia/llvm-svn/usr/lib/*.dSYM /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5/lib/julia
for suffix in julia julia-debug ; do \
for lib in /Users/jeffw/src/julia/llvm-svn/usr/lib/lib${suffix}*.dylib*; do \
if [ "${lib##*.}" != "dSYM" ]; then \
/Users/jeffw/src/julia/llvm-svn/contrib/install.sh 755 $lib /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5/lib/julia ; \
fi \
@waTeim
waTeim / ConvolutionDef.txt
Last active August 29, 2015 14:25
Caffe Layer ProtoBuf
type ConvolutionParameter
num_output::UInt32
bias_term::Bool
pad::UInt32
pad_h::UInt32
pad_w::UInt32
kernel_size::UInt32
kernel_h::UInt32
kernel_w::UInt32
group::UInt32
@waTeim
waTeim / output.txt
Created August 16, 2015 21:16
Importing caffemodel into Mocha
julia> include("test2.jl")
Configuring Mocha...
* CUDA disabled by default
* Native Ext disabled by default
Mocha configured, continue loading module...
16-Aug 17:11:57:INFO:root:Constructing net CIFAR10 on Mocha.CPUBackend...
16-Aug 17:11:57:INFO:root:Topological sorting 16 layers...
16-Aug 17:11:57:INFO:root:Setup layers...
16-Aug 17:11:58:INFO:root:Network constructed!
************************************************************
@waTeim
waTeim / bug.html
Created September 10, 2015 22:40
Webcola Bug Illustration
<!DOCTYPE html>
<html>
<head>
<title>reapply group example </title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<script src="javascripts/d3.v3.js"></script>
<script src="javascripts/cola.v3.min.js"></script>
<h1>Reapply Group Example</h1>
jeffw@wedja MINGW64 ~/src/node-julia
$ npm install
npm WARN package.json node-julia@1.2.2 No license field.
> node-julia@1.2.2 install C:\msys64\home\jeffw\src\node-julia
> node-gyp rebuild
C:\msys64\home\jeffw\src\node-julia>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
@waTeim
waTeim / A Paren Parser
Last active January 4, 2016 10:59
An example paren matching parser using pegjs
This GIST is a set of java script source and input files and the pegjs parser source.
@waTeim
waTeim / changes-to-binding.txt
Created February 7, 2016 06:31
Some experimenting julia on a 3DR drone
"libraries":
[
"-lgfortran", <--- added
"-lopenblas", <--- added
"-ljulia"
]
}
"cflags":
[
@waTeim
waTeim / cert-list.text
Created February 9, 2016 18:41
Troubleshooting Julia git cert problems
3dr_solo:~/src/tmp$ ls -l /etc/ssl/certs/
drwxr-xr-x 2 root root 10240 Feb 9 06:09 ./
drwxr-xr-x 3 root root 1024 Feb 9 06:09 ../
lrwxrwxrwx 1 root root 55 Feb 9 06:09 A-Trust-nQual-03.pem -> /usr/share/ca-certificates/mozilla/A-Trust-nQual-03.crt
lrwxrwxrwx 1 root root 52 Feb 9 06:09 ACEDICOM_Root.pem -> /usr/share/ca-certificates/mozilla/ACEDICOM_Root.crt
lrwxrwxrwx 1 root root 65 Feb 9 06:09 AC_Ra??z_Certic??mara_S.A..pem -> /usr/share/ca-certificates/mozilla/AC_Ra??z_Certic??mara_S.A..crt
lrwxrwxrwx 1 root root 69 Feb 9 06:09 Actalis_Authentication_Root_CA.pem -> /usr/share/ca-certificates/mozilla/Actalis_Authentication_Root_CA.crt
lrwxrwxrwx 1 root root 61 Feb 9 06:09 AddTrust_External_Root.pem -> /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt
lrwxrwxrwx 1 root root 71 Feb 9 06:09 AddTrust_Low-Value_Services_Root.pem -> /usr/share/ca-certificate
julia> import StateSpace;
INFO: Precompiling module StatsBase...
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
WARNING: Method definition call(Type{ArrayViews.UnsafeContiguousView}, Ptr{#T<:Any}, Int32, NTuple{#N<:Any, Int32}) in module ArrayViews at /home/jeffw/.julia/v0.5/ArrayViews/src/arrviews.jl:18 overwritten at /home/jeffw/.julia/v0.5/ArrayViews/src/arrviews.jl:26.
WARNING: unable to determine host cpu name.
INFO: Precompiling module Distributions...
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
@waTeim
waTeim / Precompile_Base.jl
Created March 19, 2016 03:14
Julia package precompile steps to aid in startup speed on ARM
function _precompile_()
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
precompile(Base.Serializer.serialize_type, (Base.SerializationState{Base.Pipe}, DataType,))
precompile(Base.Serializer.write_as_tag, (Base.Pipe, Int32,))
precompile(Base.check_open, (Base.PipeEndpoint,))
precompile(Base.Serializer.serialize_cycle, (Base.SerializationState{Base.Pipe}, UInt8,))
precompile(Base.write, (Base.Pipe, Array{UInt8, 1},))
precompile(Base.flush, (Base.PipeEndpoint,))
precompile(Base.Serializer.serialize, (Base.SerializationState{Base.Pipe}, Int32,))
precompile(Base.Filesystem.lstat, (ASCIIString,))