This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if #arg < 1 then | |
print 'usage: <your command> target [speed1] [speed2]' | |
print 'units are in m/s.' | |
print 'if the parents are missing, they\'re assumed to be average of 9.4m/s.' | |
os.exit(1) | |
end | |
--- The number of simulation runs. | |
local tries = tonumber(os.getenv("TRIES")) or 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Interactive File Management Utilities by hibi | |
# | |
# This source file will let you select individual files and copy and move them | |
# around much like a graphical file manager would. Intended to be used with | |
# `source` in your bashrc. | |
# | |
# Usage: | |
# Fsel name1 [name2 [...]] - selects files and folders | |
# Funsel [name1 [name2 [...]]] - unselects files and folders, or all | |
# Fcp [destination] - copies the files here or to destination |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cat example in zig - by hibi | |
const std = @import("std"); | |
// good practices | |
const logger = std.log.scoped(.cat); | |
pub fn main() !void { | |
const stdout = std.io.getStdOut(); | |
var args = std.process.args(); | |
defer args.deinit(); |