I hereby claim:
- I am sascha-t on github.
- I am sascha_t (https://keybase.io/sascha_t) on keybase.
- I have a public key ASAmcygx-4FXNqKT2GM538fIUQF1gVVZeKcsD1CwZaF9mQo
To claim this, I am signing this object:
| int stli(char *c) { | |
| int ret = 0; | |
| while (*c != 0) { | |
| ret = ret << 4; | |
| if(*c >= '1' && *c <= '9') { | |
| ret += *c - 48; | |
| } | |
| if(*c >= 'a' && *c <= 'f') { | |
| ret += *c - 87; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| let grav = 9.8 | |
| // Velocity is in meters per second | |
| // Angle is in radians | |
| // Initial Height is in meters | |
| // Returns: Horizontal distance travelled by object | |
| function artillery(velocity, angle, initHeight) { | |
| return Math.pow(velocity, 2) / (2 * grav) * (1 + Math.sqrt(1 + ((2*grav * initHeight) / (Math.pow(velocity, 2) * Math.pow(Math.sin(angle), 2))))) * Math.sin(2*angle) | |
| } |
| local taped = require("component").tape_drive | |
| local fs = require("component").filesystem | |
| local a = {...} | |
| taped.seek(-taped.getPosition()) | |
| local r = "" | |
| if taped.read(4) == "fsiz" then | |
| while true do | |
| local partdata = taped.read(1) | |
| if tonumber(partdata) ~= nil then | |
| r = r .. partdata |
| local gpu = component.proxy(component.list("gpu")()) | |
| local y = 1 | |
| local x = 1 | |
| local screenX, screenY = gpu.getResolution() | |
| local component_invoke = component.invoke | |
| function boot_invoke(address, method, ...) | |
| local result = table.pack(pcall(component_invoke, address, method, ...)) | |
| if not result[1] then | |
| return nil, result[2] |
| local args = {...} | |
| local shell = require("shell") | |
| if not args[1] then | |
| print("Please specify a path") | |
| print("stat (PATH)") | |
| require("os").exit() | |
| end | |
| local path = shell.resolve(args[1]) | |
| local fs = require("component").filesystem | |
| if not fs.exists(path) then |
I hereby claim:
To claim this, I am signing this object: