Author:
erics, February 27th, 2015
The .toFixed(2) method will round off the value of the field to 2 decimal places
|
decimalNumTwoPlaces = parseFloat(this.value.toFixed(2)); |
Categories: How-To's, Technology Tags: Decimal, Floating, Floating Point, howto, javascript, Round, Rounding, tips, toFixed
| No comments
Author:
erics, February 27th, 2015
|
#!/bin/bash for line in `cat file.txt`; do echo line: $line done |
|
#!/bin/bash for file in $( ls ); do echo filename: $file done |
|
#!/bin/bash for i in `seq 1 10`; do echo $i done |
Categories: How-To's, Technology Tags: bash, howto, Loop, tips
| No comments
Author:
erics, February 3rd, 2015
vimdiff /path/to/file.css scp://yourHost.com//path/to/file.css
Categories: How-To's, Technology Tags: diff, howto, scp, ssh, tips, vim, VimDiff
| No comments