Paradox42 / 2024-Day1-Solution.lua
0 likes
0 forks
1 files
Last active
1 | local list1, list2 = {}, {} |
2 | |
3 | for line in io.lines("input.txt") do |
4 | list1[#list1 + 1] = line:match("^(%d+)%s") |
5 | list2[#list2 + 1] = line:match("%s(%d+)$") |
6 | end |
7 | |
8 | table.sort(list1) |
9 | table.sort(list2) |
NotNotMike / Obtainium Export
0 likes
0 forks
1 files
Last active
1 | { |
2 | "apps": [ |
3 | { |
4 | "id": "dev.imranr.obtainium", |
5 | "url": "https://github.com/ImranR98/Obtainium", |
6 | "author": "ImranR98", |
7 | "name": "Obtainium", |
8 | "installedVersion": "v1.1.11", |
9 | "latestVersion": "v1.1.11", |
10 | "apkUrls": "[[\"app-arm64-v8a-release.apk\",\"https://api.github.com/repos/ImranR98/Obtainium/releases/assets/173926408\"]]", |
Ategon / Godot Small Wave BBCode
0 likes
0 forks
1 files
Last active
A text wave effect that moves one letter up at a time (for every 10 letters, that can be customized). Also has a shine effect which is what the part other than changing the offset is
1 | @tool |
2 | extends RichTextEffect |
3 | class_name SmallWaveEffect |
4 | |
5 | var bbcode = "smallwave" |
6 | |
7 | func _process_custom_fx(char_fx: CharFXTransform) -> bool: |
8 | var time = fmod(char_fx.elapsed_time * 8 - char_fx.relative_index + 100, 10) |
9 | var local_time = fmod(time, 1) |
10 |
owsei / levenshtein.js
0 likes
0 forks
1 files
Last active
1 | function lev(a, b) { |
2 | if (!a.length) return b.length; |
3 | if (!b.length) return a.length; |
4 | const arr = []; |
5 | for (let i = 0; i <= b.length; i++) { |
6 | arr[i] = [i]; |
7 | for (let j = 1; j <= a.length; j++) { |
8 | arr[i][j] = i === 0 ? |
9 | j : Math.min( |
10 | arr[i - 1][j] + 1, |
Ategon / example.js
1 likes
0 forks
1 files
Last active
1 | function example() { |
2 | console.log("hello world!"); |
3 | } |
Newer
Older