$ nix run --extra-experimental-features flakes blender-bin#blender_4_0
$ nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
| function LDbrain(opts) { | |
| const trainingData = []; | |
| function trainKeyValue(key, properties) { | |
| trainingData.push({ k: key, ...properties }); | |
| } | |
| function train(data) { | |
| for (let k in data) { | |
| // wrap string in functions, so they can still be lazily evaluated with template vars |
| # URI/URL parser | |
| # | |
| # author: Leon van Kammen (coderofsalvation) | |
| # SPDX-License-Identifier: MIT | |
| # date: 16-05-2024 | |
| # comments: https://gist.github.com/coderofsalvation/b2b111a2631fbdc8e76d6cab3bea8f17 | |
| # | |
| # Participants of the Open Web think & communicate in URI's: now with Godot (>=4) too! | |
| # This class will not win the beauty contest related to RFC 3986, but here goes: | |
| # |
| # For more sophisticated use of loading remote GLTF (with extras) use the xrfragment.org spec & xrfragment.gd script | |
| # XRFRAGMENT.ORG is a mini-spec which standardizes 3D metadata without fileformat or platform lock-in | |
| # | |
| # Usage: | |
| # | |
| # load("https://xrfragment.org/index.glb") | |
| # var doc = GLTFDocument.new() | |
| # var state = GLTFState.new() | |
| # #state.set_handle_binary_image(GLTFState.HANDLE_BINARY_EMBED_AS_BASISU) # Fixed in new Godot version (4.3 as I see) https://github.com/godotengine/godot/blob/17e7f85c06366b427e5068c5b3e2940e27ff5f1d/scene/resources/portable_compressed_texture.cpp#L116 | |
| # var error = doc.append_from_buffer(body, "", state) |
Due to lack of nix-skills I gave up on compiling it via nix (and ideally submitting it upstream).
For now, I'm just using the AWESOME ocp player via this ~/bin/ocp shellscript:
#!/bin/bash
nix_windows(){
test -d ~/apps/ocp || {
mkdir ~/apps/ocp
cd ~/apps/ocp
| #!/bin/bash | |
| # | |
| # Q: how can I track & run tasks in parallel (speed up CI pipeline e.g.) | |
| # confidently without introducing platforms like Apache | |
| # Airflow or Windmilll? | |
| # | |
| # A: the 'wait' command in shellscript | |
| # | |
| set -eE && trap "echo '❌ halting flow'" ERR | |
| run(){ time "$@" 2>&1 | sed "s/^/[$1] /g" | tee .log; } |
| { pkgs ? import <nixpkgs> {} }: | |
| pkgs.mkShell { | |
| buildInputs = [ | |
| # Packages from the default nixpkgs channel | |
| pkgs.python | |
| pkgs.vim | |
| # Packages from another channel | |
| (import (builtins.fetchTarball { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title></title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style type="text/css"> | |
| #videos{ | |
| display:grid-auto-columns; | |
| grid-column-gap:5px; |
| #!/bin/sh | |
| # below is based on this forgejo actions admin guide: https://forgejo.codeberg.page/docs/v1.20/admin/actions/ | |
| PORT=8621 | |
| TOKEN=XXXXXXX_REPLACE_TOKEN_HERE_XXXXXXXX | |
| URL=https://yourinstancehere.org | |
| UID=`id -u` | |
| docker=`which docker || which podman` | |
| test -d data || mkdir data |