Magic Converter: #WEEKLY ...14?
This is my converter app.
It has two modes:
- Single-value
- Bulk
Please use repl.run
Single mode
In single mode, you can select your units and value interactively.
Your available units are:
- Feet
- Inches
- Jimmy Griffin Snow Index (4 inches)
- Wiffles (3.5 inches)
Once you do that, the value will be exported to the display.
Bulk mode
Bulk mode requires that you open a file and edit it to contain one value per line.
For example:
2 3 1 5 4
You'll also have to enter a formula to convert the values, with $1 representing the current value being applied.
To convert the values above to inches, use $1*12
.
After the conversion is complete, they will be saved to {filename}_converted.
And that's it, for the magic converter
Cool!
Can you add japanese units?
@TheForArkLD No, but you can use the bulk converter to do so…
Ur a mod? I never knew that!
@JosephSanthosh I didn't either, until a day ago.
Wait really?!? WOW!! [email protected]
Where do you learn this from?
@JosephSanthosh
What's this
?
This calculator! How do you all remember do these things?!? @CodeLongAndPros
@JosephSanthosh
Like in->ft?
No how do you remember what to code and when? Isn't so confusing @CodeLongAndPros
@JosephSanthosh
Well, for the npyscreen stuff, I have a tab open with the docs, and with the other stuff, I’ve just memorized it.
@JosephSanthosh It’s like reading music, you just kinda know when you see it (or think it)
Wow! Thats so cool! How long have you been coding? @CodeLongAndPros
@JosephSanthosh About three years
Wow! Are you a highschooler? @CodeLongAndPros
@JosephSanthosh In secondary, yes.
SCORED.