-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
| queue = {} | |
| queue_max = 100 | |
| producer = coroutine.create(function () | |
| while #queue < queue_max do | |
| local item = "Hello! "..#queue | |
| table.insert(queue, item) | |
| -- print(item .. " inserted") | |
| end |
| require 'sys' | |
| local n = 100000 | |
| local seq = {} | |
| for i = 1, n do seq[i] = i end | |
| local bs = 405 | |
| local plainLoop = function() | |
| local yield = {} | |
| for i = 1, #seq do |
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
The luarocks package can be installed on a Windows Linux Subsystem.
Once installed, to use it, use luarocks inside a WSL shell or wsl luarocks within a Windows shell.
wsl # Enter WSL shell (if installed and enabled)
sudo apt-get update # Update package lists (otherwise luarocks may not be found)
sudo apt-get install luarocks # Install luarocksA commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
deps.lua is an all-in-one script containing your declarative list of dependencies and installing any missing ones.
Kind of like Clojure's deps.edn except that the dependencies and code to download them are bundled in one package.
- add link from file to gist so people can find back to here
- add entries to .gitignore if available
- ? if file ends in
.fnl, downloadfennel.luaand compile to respective.luafile location
- Visit https://www.msys2.org/
- Click on the link next to "Download the installer"
- Run the installer
- Add "C:\msys64\usr\bin" to path
- If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
- This may negatively affect your devices battery life. I'm not entirely sure yet.
- Install Termux – Apps on Google Play
| local imgui = load_imgui({version="1.0.0", name="test"}) | |
| function OnWorldPreUpdate() | |
| if imgui.Begin("Main Window Title") then | |
| local available_width, available_height = imgui.GetContentRegionAvail() | |
| if imgui.BeginChild("TopLeft", 0.2 * available_width, 200, true) then | |
| imgui.Text("TopLeft") | |
| imgui.EndChild() |

