minitech

British Columbia, Canada

Age: 17

Code formatting is 𝚗𝚘𝚝 for emphasis!

1d
comment Working out total price of Journey cost with multiple variables
JavaScript number literals use ., not ,, as a decimal separator.
1d
revised Working out total price of Journey cost with multiple variables
deleted 186 characters in body
1d
revised Haskell - Square everything in list
Removed syntax highlighting from error
2d
comment Reverse decimal digits in javascript
@QuentinEngles: People mostly need to do this with integers. Something with a fractional part is probably better done (and maybe even better represented) as a string.
Mar
3
answered "Proper" way of inheriting reference values in Javascript?
Mar
2
awarded Nice Answer
Mar
1
answered Understanding "Monad m" in >>=
Feb
28
answered What is the enigmatic word?
Feb
28
answered How to fix this merge through terminal
Feb
28
comment How can I avoid exponential notation in mathjs results
This will probably end up being a bit hacky, since JavaScript doesn’t store numbers with 28 digits of precision – see x.toPrecision(28). You can do x.toPrecision(Math.floor(Math.log10(x)) + 1) and then replace anything beyond 12 places with zeroes. (Math.js might have something to do this, but it is a little… icky.)
Feb
28
comment How to fix this merge through terminal
Run git merge --abort, then check git status again and clean up anything there, then pull.
Feb
27
comment Decorators - Throwing Invalid Syntax in Python
You can only decorate a function or class definition.
Feb
27
comment Type errors in haskell
@RainMan: If your question is appropriate for Stack Overflow, you can ask it and point me to it from here if necessary! You’re more likely to get a timely, complete answer that way. =) If not, I suppose you could send me an e-mail – see github.com/minitech.
Feb
26
comment Why wont <button type="submit"> work?
@Trisha: Throw jquery-migrate away. Use jQuery 1.11.2 or 2.1.3.
Feb
26
answered Why wont <button type="submit"> work?
Feb
26
comment Why wont <button type="submit"> work?
Is there any JavaScript on the page?
Feb
26
awarded Editor
Feb
26
revised Was Draco ever punished for his Unforgivable Curse?
Minor spelling/grammar fixes.
Feb
26
revised C preprocessor: concatenation of another define
appended answer 28742185 as supplemental
Feb
26
comment Dynamic property name concatenation
Create and use a device.slots array instead?
1 2 3 4 5