Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
@fire
fire / blender
Last active April 21, 2022 14:38
$ cat /usr/local/bin/blender
#!/usr/bin/env bash
/usr/bin/flatpak run org.blender.Blender "$@"
@fire
fire / 3d-formats.md
Created March 30, 2022 18:45 — forked from meshula/3d-formats.md
3d file formats, last mile vs. interchange
@fire
fire / clean_all_svgs.sh
Created March 27, 2022 14:46 — forked from j3j5/clean_all_svgs.sh
Apply SVG Cleaner to all the SVGs on a given folder
# https://github.com/RazrFalcon/svgcleaner/ must be installed
find . -type f -name "*.svg" | sudo xargs -I file svgcleaner file file
@fire
fire / gltf_merge_anim.py
Created March 3, 2022 07:07 — forked from scurest/gltf_merge_anim.py
Quick code to convert a glTF with multiple non-overlapping animations to one with a single animation.
#!/bin/env python
"""Merge mutiple glTF 2.0 animations into one."""
import json
import sys
def merge(gltf):
# Maps (node, path) to (input, output, interpolation)
target_to_sampler = {}
for animation in gltf.get('animations', []):
for channel in animation['channels']:
#
https://github.com/elixir-desktop/deployment
Get Erlang 24:diode/beta http://github.com/diodechain/
Get Elixir 1.11.4 https://elixir-lang.org/install.html
## Get msys2 https://www.msys2.org/ - And a whole bunch of deps: pacman -Syu pacman -S --noconfirm pacman-mirrors pkg-config pacman -S --noconfirm --needed base-devel autoconf automake make libtool mingw-w64-x86_64-toolchain mingw-w64-x86_64-openssl mingw-w64-x86_64-libtool git
// https://github.com/ERGO-Code/HiGHS/blob/master/examples/call_highs_from_cpp.cpp
//
// HiGHS is designed to solve linear optimization problems of the form
//
// Min (1/2)x^TQx + c^Tx + d subject to L <= Ax <= U; l <= x <= u
//
// where A is a matrix with m rows and n columns, and Q is either zero
// or positive definite. If Q is zero, HiGHS can determine the optimal
// integer-valued solution.
//
Id SepalLengthCm SepalWidthCm PetalLengthCm PetalWidthCm Species
1 5.1 3.5 1.4 0.2 Iris-setosa
2 4.9 3.0 1.4 0.2 Iris-setosa
3 4.7 3.2 1.3 0.2 Iris-setosa
4 4.6 3.1 1.5 0.2 Iris-setosa
5 5.0 3.6 1.4 0.2 Iris-setosa
6 5.4 3.9 1.7 0.4 Iris-setosa
7 4.6 3.4 1.4 0.3 Iris-setosa
8 5.0 3.4 1.5 0.2 Iris-setosa
9 4.4 2.9 1.4 0.2 Iris-setosa
@fire
fire / machine.js
Created November 18, 2021 05:14
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
var queue : Array
queue.push_back(scene)
while not queue.is_empty():
var front = queue.front()
var node = front
if node is AnimationPlayer:
_do(node)
var child_count : int = node.get_child_count()
for i in child_count:
queue.push_back(node.get_child(i))

我們還在元宇宙中嗎? 加密人說他們正在構建它。遊戲玩家可能已經生活在其中。藝術界正在從中獲利。網絡老手正試圖挽救它。但它是什麼?

信用... Jon Han 作者:約翰赫爾曼和凱倫布朗寧 2021 年 7 月 10 日,美國東部時間上午 5:00 技術中最偉大的想法往往在它們真正連貫之前就進入了詞典。行話突然出現、解釋不足和過度使用:物聯網、共享經濟、雲。 在一些罕見的情況下,術語仍然存在。很多人談論很多鬆散相關的事情,然後這些事情合併成一個單一的半可理解的事情。然後我們永遠生活在那個東西中。還記得聽說過“互聯網”嗎?為“元節”做好準備。 這個詞來自數字古代:由作家尼爾斯蒂芬森在他 1992 年的小說“雪崩”中創造,然後在歐內斯特克萊恩小說“準備好玩家一號”中被重新想像成綠洲,它指的是一個完全實現的數字世界,它存在於我們生活的那個模擬。 在小說中,烏托邦式的元宇宙可能被描繪成一個新的前沿,在那裡可以重新書寫社會規範和價值體系,擺脫文化和經濟僵化。但更多時候,元宇宙有點反烏托邦——來自墮落世界的虛擬避難所。