Skip to content

Instantly share code, notes, and snippets.

View jdavcs's full-sized avatar
🐧

John Davis jdavcs

🐧
  • Johns Hopkins University
  • Baltimore, MD
View GitHub Profile
@natefoo
natefoo / get_toolbox.py
Created April 17, 2025 19:38
Minimal script to operate on toolbox
from galaxy.app import GalaxyManagerApplication
from galaxy.tool_shed.cache import ToolShedRepositoryCache
global_conf = {
"shed_tool_config_file": "shed_tool_conf.xml",
}
app = GalaxyManagerApplication(**global_conf)
app.tool_shed_repository_cache = app._register_singleton(ToolShedRepositoryCache)
app._configure_tool_data_tables(from_shed_config=False)
@max-mapper
max-mapper / 0.md
Last active March 31, 2026 18:26
JS hoisting by example

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)