Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
-- burnRateMbT: fuel burn rate in mB per tick -- seconds: how long the reactor runs -- returns: ingots consumed function ingotsUsed(burnRateMbT, seconds) local ticks = seconds * 20 local milliBuckets = burnRateMbT * ticks local ingots = milliBuckets / 1000 return ingots end local burnRate = 0.1 -- mB/t print("Per minute:", ingotsUsed(burnRate, 60)) print("Per hour:", ingotsUsed(burnRate, 3600))
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)