Skip to content

To import at the start of an interactive session. Re-exports useful libraries and defines miscellaneous utility functions that don't fit in a proper package.

License

Notifications You must be signed in to change notification settings

tfiers/MyToolbox.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update: this package was not a great idea: importing a whole bunch of utility packages into a julia session by default makes the long startup even more painful.

Lesson: only import what you really need, right now.


MyToolbox.jl

To import at the start of an interactive session. Re-exports useful, small libraries, and defines miscellaneous utility functions that don't fit in a proper package.

Showcase

julia> using MyToolbox

julia> @alias ODict = OrderedDict;  # Expands to:
       # @doc (@doc OrderedDict) const ODict = OrderedDict;

julia> neuron_IDs = idvec(exc = 5200, inh = 1300, unconn = 100)
ComponentVector()

julia> showsome(labels(neuron_IDs))  # More compact than `show`.
6600-element Vector{String}:
    1: "exc[1]"
    2: "exc[2]"
    
   21: "exc[21]"
    
 6168: "inh[968]"
    
 6599: "unconn[99]"
 6600: "unconn[100]"

 julia> ziplongest([1,2,3], [1,2]);
        # Equivalent to `zip([1,2,3], [1,2,nothing])`

Installation

As this package is not registered (yet), use

Pkg.add(url="https://github.com/tfiers/MyToolbox.jl")

About

To import at the start of an interactive session. Re-exports useful libraries and defines miscellaneous utility functions that don't fit in a proper package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages