Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tfiers/mytoolbox.jl
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.
https://github.com/tfiers/mytoolbox.jl
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/tfiers/mytoolbox.jl
- Owner: tfiers
- License: mit
- Created: 2022-01-28T06:00:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T15:46:00.000Z (over 1 year ago)
- Last Synced: 2024-04-16T07:05:25.086Z (9 months ago)
- Language: Julia
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
julia> using MyToolboxjulia> @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
```julia
Pkg.add(url="https://github.com/tfiers/MyToolbox.jl")
```