Skip to content

Instantly share code, notes, and snippets.

View vincent-uden's full-sized avatar
🤔
Hmmmm

Vincent Uden vincent-uden

🤔
Hmmmm
View GitHub Profile
@vincent-uden
vincent-uden / export.nu
Created October 3, 2025 11:57
Nushell overlay for esp-idf development1
# ESP-IDF activation module for Nushell:
# - Activate with `overlay use export.nu`
# - Deactivate with `deactivate`, as usual
#
# Usage examples:
# cd /path/to/esp-idf
# overlay use export.nu
# idf.py build
# deactivate
#
XY0 = {{-0.1, 0, 2.5}, {-0.3, 0, 2.5}, {-0.6, 0, 2.4}, {-2, 1.5,
0.1}, {-2, 1.3, 0.8}, {0.0, 0.9, 0.4}, {0.0, -0.9, 0.4}, {2, -1.5,
0.1}, {2, -1.3, 0.8}};
\[Mu] = -0.01;
trajectories = {};
For[
i = 1,
i <= Length[XY0],
i++,
AppendTo[trajectories, NDSolve[{
@vincent-uden
vincent-uden / R3.ipynb
Created May 24, 2021 19:23
Miljöfysik R3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vincent-uden
vincent-uden / R1.ipynb
Created April 21, 2021 12:47
Miljöfysik Räkneuppgift 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vincent-uden
vincent-uden / geo.py
Created December 23, 2020 22:41
JSON to CSV
import json
import csv
from datetime import datetime
# print(datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S'))
with open("/home/vincent/Downloads/Takeout/Platshistorik/Semantic Location History/2020/2020_DECEMBER.json") as f:
data = json.load(f)
#!/usr/bin/bash
echo "loadkeys sv-latin1"
@vincent-uden
vincent-uden / log.txt
Created February 1, 2020 17:15
Text generated
--- Higher temperature gives higher variance in words chosen by the AI ---
--- Temperature 0.1 ---
The soul some death and the state the more to the state and some son,
The stand the state the more than the state the state and the state and the state and some soul
That I shall be so many the state and the state the state and some state the more than the state the state the more to the sent to the man and the state and some soul some and some state and some soul of the sun to the state the state and some sons
That I will not so the more than the state and some stands and some that the state of the world and some son,
And so make the strange the state and all the state the state the sent to the more than the state the state and some stand in the seems to the state the state and some stands and some sons
That I am a state and the fortune to the world her soul so many son,
@vincent-uden
vincent-uden / mods.md
Last active January 29, 2020 19:02
Skyrim Mods

Skyrim Special Edition Modding

Först! Installera Skyrim Script Extender (SKSE)

Massa mods kräver det här moddet. Och just det här moddet installerar man på ett speciellt sätt. Alla andra kan man ladda ner från nexusmods men inte den här. https://skse.silverlock.org/ Du ska ha Current SE build, finns en video på hur man installerar det.

Must have

Network protocol for TCP chat server/client

Request type

The first byte (char) of a request represents what type of request. The following prefix-bytes are supported.

  • c (Connection establishment)
  • m (Message)
  • q (Disconnecting)

To separate different data fields the ASCII "end of transmission block"

20.0 42.8 45.7 6.0
20.0 42.8 45.7 6.3
20.0 42.8 45.7 6.0
20.0 42.8 45.7 6.7
20.0 42.8 45.7 6.6
20.0 42.8 45.7 6.3
20.0 42.8 45.7 6.9
20.0 42.8 45.7 6.4
20.0 42.8 45.7 6.7
20.0 42.8 45.7 6.4