Skip to content

Instantly share code, notes, and snippets.

View JeffreySarnoff's full-sized avatar

Jeffrey Sarnoff JeffreySarnoff

View GitHub Profile
@JeffreySarnoff
JeffreySarnoff / CONTRIBUTING.md
Created September 18, 2012 18:01 — forked from pao/CONTRIBUTING.md
Julia CONTRIBUTING file (started by Jeffrey Sarnoff)

Contributing

We welcome contributions to Julia and appreciate your interest. There are capabilities to grow, interfaces to write and whatever you might do. Area experts may contribute by writing software that supports work in their own field. For help, Julia has a dev list that works at working well for participants. To keep things percolating as smoothly as possible, we ask that you follow the advice and guidelines given here.

ready, get set

Before contributing to Julia, you should join the dev list, read the user manual and library guide, reread the user manual, and create a free GitHub account. Follow these steps to get Julia copied to your machine in a way that lets you to work locally, rewind your edits, keep a remote backup, and safely contribute to Julia.

@JeffreySarnoff
JeffreySarnoff / Unsigned32.jl
Created November 14, 2012 00:18
An always unsigned Unsigned Integer Type for Julia
>>>> please see https://gist.github.com/4070761
>>>> and ignore this gist
# Unsigned32.jl
#
# A very preliminary cut at an always unsigned fixed bitwidth type
#
@JeffreySarnoff
JeffreySarnoff / Unsigned8.jl
Created November 14, 2012 00:39
An always unsigned always 8bit type
>>>> please see https://gist.github.com/4070758
>>>> and ignore this gist
# Unsigned8.jl
#
# A very preliminary cut at an always unsigned fixed bitwidth type
#
@JeffreySarnoff
JeffreySarnoff / unsigned16.jl
Created November 14, 2012 07:07
a persistently unsigned 16bit type
# unsigned16.jl
#
# A preliminary cut at an always unsigned always 16bits wide type
#
# use : Just require this file, it self imports.
#
# uvalue16 = unsd16(number)
# typeof(uvalue16) == Unsd16
#
# exports: Unsd16, unsd16,
@JeffreySarnoff
JeffreySarnoff / unsigned32.jl
Created November 14, 2012 07:08
a persistently unsigned 32 bit type
# unsigned32.jl
#
# A preliminary cut at an always unsigned always 32bits wide type
#
# use : Just require this file, it self imports.
#
# uvalue32 = unsd32(number)
# typeof(uvalue32) == Unsd32
#
# exports: Unsd32, unsd32,
@JeffreySarnoff
JeffreySarnoff / 0_reuse_code.js
Created July 25, 2016 03:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@JeffreySarnoff
JeffreySarnoff / DayNumber.jl
Last active March 31, 2017 03:20
still daynumbers
#=
#
# filename: DayNumber.jl
#
# part of : Time for Julia
# in part : my own software
#
# purpose : canonical daycounts for TAI dates
#
# offers : ymd_to_daynumber, daynumber_to_ymd
julia> Pkg.installed("Colors")
v"0.7.3"
julia> Pkg.add("Colors")
ERROR: GitError(Code:ENOTFOUND, Class:Odb, Object not found - no match for id (9f3aa6b6174c378503f612a44c0854e78c8c9a83))
macro expansion at ./libgit2/error.jl:99 [inlined]
Base.LibGit2.GitTree(::Base.LibGit2.GitRepo, ::String) at ./libgit2/repository.jl:115
#isdiff#76(::Bool, ::Function, ::Base.LibGit2.GitRepo, ::String, ::String) at ./libgit2/libgit2.jl:134
(::Base.LibGit2.#kw##isdiff)(::Array{Any,1}, ::Base.LibGit2.#isdiff, ::Base.LibGit2.GitRepo, ::String, ::String) at ./<missing>:0
isfixed(::String, ::Base.LibGit2.GitRepo, ::Dict{VersionNumber,Base.Pkg.Types.Available}) at ./pkg/read.jl:64
module TemporalAbstractions
export AbstractTime,
AbstractCalendar, AbstractDate, AbstractTimeOfDay,
AbstractDateTime, AbstractDateTimeZone
import Base.Dates: AbstractTime
abstract type TemporalAbstraction end
@JeffreySarnoff
JeffreySarnoff / NibbleNulls.jl
Created September 9, 2017 17:42
Nulls as nibble sized bitflag sentinals
#=
proof of concept
multidimensional indicies are not treated
no comparative benchmarking has been done
=#
module NibbleNulls
export notnull, isnull, setnull!, clearnull!,
NibbleVec