View Manifest.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[Base64]] | |
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | |
[[BinaryProvider]] | |
deps = ["Libdl", "Pkg", "SHA", "Test"] | |
git-tree-sha1 = "48c147e63431adbcee69bc40b04c3f0fec0a4982" | |
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232" | |
version = "0.5.0" | |
[[CSV]] |
View Dockerfile.base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch-slim | |
# Create the home directory for the new user. | |
RUN mkdir -p /home/default | |
# Create an default user so our program doesn't run as root. | |
RUN groupadd -r default &&\ | |
useradd -r -g default -d /home/default -s /sbin/nologin -c "Docker image user" default | |
# Set the home directory to our default user's home. | |
ENV HOME=/home/default |
View init.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.config/nvim/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'JuliaEditorSupport/julia-vim' | |
Plug 'cespare/vim-toml' | |
Plug 'tpope/vim-fugitive' | |
Plug 'ararslan/license-to-vim' | |
call plug#end() |
View gist:df388d2946503593c2124f9de1039a95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const BYTES = fill(false, 128) | |
BYTES[Int(',')] = true | |
BYTES[Int('\n')] = true | |
BYTES[Int('\r')] = true | |
const COMMA = UInt8(',') | |
const NEWLINE = UInt8('\n') | |
const RETURN = UInt8('\r') |
View gist:3ab5f31305d5f76056e2e7b79b2b58c3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EXPONENTS = [ | |
1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, | |
1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, | |
1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29, | |
1e30, 1e31, 1e32, 1e33, 1e34, 1e35, 1e36, 1e37, 1e38, 1e39, | |
1e40, 1e41, 1e42, 1e43, 1e44, 1e45, 1e46, 1e47, 1e48, 1e49, | |
1e50, 1e51, 1e52, 1e53, 1e54, 1e55, 1e56, 1e57, 1e58, 1e59, | |
1e60, 1e61, 1e62, 1e63, 1e64, 1e65, 1e66, 1e67, 1e68, 1e69, | |
1e70, 1e71, 1e72, 1e73, 1e74, 1e75, 1e76, 1e77, 1e78, 1e79, | |
1e80, 1e81, 1e82, 1e83, 1e84, 1e85, 1e86, 1e87, 1e88, 1e89, |
View selector bytes.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Base.selectorbytes(A::Array{T, N}) -> Array{UInt8, N} | |
For an Array with `isbits` Union elements, return the "selector bytes" that indicate the | |
index of the type for each array element, i.e. the type of `A[1]` is | |
`Base.uniontypes(eltype(A))[Base.selectorbytes(A)[1] + 1]`. | |
**NOTE**: The actual array selector bytes are returned, meaning if individual elements | |
are modified, the original array will reflect those changes. Setting selector bytes to | |
invalid or out-of-bounds type indexes may corrupt the original array. | |
""" |
View iuab.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> function f(v::Vector{Int8}, n) | |
s = Int8(0) | |
@inbounds for i = 1:n | |
s += v[i] | |
end | |
return s | |
end | |
f (generic function with 2 methods) | |
julia> function f(v::Vector{Union{Void, Int8}}, n) |
View gist:38ec81c770bed6291391
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Table{T} <: Source | |
schema::Schema | |
index::Vector{Int} | |
ints::Vector{NullableVector{Int}} | |
floats::Vector{NullableVector{Float64}} | |
ptrstrings::Vector{NullableVector{PointerString}} | |
strings::Vector{NullableVector{UTF8String}} | |
dates::Vector{NullableVector{Date}} | |
datetimes::Vector{NullableVector{DateTime}} | |
any::Vector{NullableVector{Any}} |
View gist:bb1b5d8170301801c012
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Micro performance benchmarks | |
# Results Data | |
## String Type | Benchmark | DateTime Run | | |
## Julia Version | Strings.jl Version | | |
## Time Elapsed | Bytes Allocated | GC Time | |
# reload("Strings") | |
results = Dict("String Type"=>ASCIIString[], | |
"String Length"=>Int[], |
View juliacon2015.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pkg.clone("https://github.com/quinnj/Mmap.jl") | |
Pkg.clone("https://github.com/quinnj/CSV.jl") | |
Pkg.add("ODBC") | |
Pkg.checkout("SQLite","jq/remodel") | |
Pkg.add("SQLite") | |
Pkg.checkout("SQLite","jq/updates") | |
reload("Mmap") | |
reload("CSV") |