Skip to content

Instantly share code, notes, and snippets.

View kdheepak's full-sized avatar

Dheepak Krishnamurthy kdheepak

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ uv add numpy --verbose
DEBUG uv 0.3.2
DEBUG Found project root: `/Users/USERNAME/gitrepos/test-uv-prototype`
DEBUG No workspace root found, using project root
DEBUG The virtual environment's Python version satisfies `Python >=3.12`
DEBUG Using request timeout of 30s
DEBUG No changes to dependencies; skipping update
DEBUG Using request timeout of 30s
DEBUG Acquired lock for `/Users/USERNAME/.cache/uv/built-wheels-v3/editable/cc91c04c8bf8bb2f`
DEBUG No static `PKG-INFO` available for: test-uv-prototype @ file:///Users/USERNAME/gitrepos/test-uv-prototype (MissingPkgInfo)
$ tree .pixi

.pixi
└── envs
   └── default
      ├── bin
      │  └── julia
      ├── build_env.sh

Examples

// Hello
using Pkg
cd(mktempdir()) do
Pkg.activate(".")
Pkg.add(PackageSpec(name="JuMP", version="1.13.0"))
Pkg.add(PackageSpec(name="GLPK", version="1.1.2"),
preserve=PRESERVE_DIRECT)
Pkg.status()
end
def get_state(fed):
f = h.loadSym("helicsFederateGetState")
err = h.helicsErrorInitialize()
r = f(fed.handle, err)
return r
Error executing vim.schedule lua callback: vim/shared.lua:0: after the second argument: expected table, got nil
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
vim/shared.lua: in function 'tbl_deep_extend'
.../packer/start/cmp-treesitter/lua/cmp_treesitter/init.lua:19: in function 'get_keyword_pattern'
.../nvim/site/pack/packer/start/nvim-cmp/lua/cmp/source.lua:163: in function 'callback'
.../site/pack/packer/start/nvim-cmp/lua/cmp/utils/cache.lua:36: in function 'get_default_replace_range'
...e/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/entry.lua:45: in function 'new'
@kdheepak
kdheepak / documentation.jl
Last active May 27, 2020 21:38
generate helics documentation using libclang
using Clang
using HELICS
const HELICS_jll = HELICS.Lib.HELICS_jll
# LIBCLANG_HEADERS are those headers to be wrapped.
const LIBHELICS_INCLUDE = [
normpath(joinpath(HELICS_jll.artifact_dir, "include", "helics", "shared_api_library")),
normpath(joinpath(HELICS_jll.artifact_dir, "include", "helics")),