by xero updated 10.29.24
var input = [ | |
'$10.000,00', | |
'$10,000.00', | |
'$10,000.00 ', | |
'$10,,,000.00 ', | |
'$10,0,0,0.00 ', | |
'$10,000', | |
'$10,000', | |
'$10000', | |
'10000', |
These instruction are for Windows, on my Linux installation(Fedora 21) everything works by just installing serialport with npm (I don't know why!).
These are the steps I did to build node serialport for electron (formerly atom-shell) for Windows. I am completely certain there is a better way to do it, but since I struggled with it for quite a while, here is a solution anyway.
You need some version of Visual studio installed, I have VS 2012 Express for Desktop.
// Examples | |
// Yes, "router.router" twice - this assumes that the router is being injected | |
// into the component. Otherwise lookup 'router:main' | |
// One of these will be of interest, figure out which one you want: | |
this.get('router.router.state'); | |
this.get('router.router.state.params'); | |
this.get('container').lookup('controller:application').currentPath; |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
As a maintainer of native node add-on modules I have some questions about when and why NODE_MODULE_VERSION
changes:
(@rvagg has anwered these in the comments below)
- does v8 use semver? how do you know when a v8 version breaks ABI compatibilility?
- is there a semantic meaning for v8 version numbers or is it arbitrary?
- who maintains this google doc I found? is it official?
- why is the latest entry from may in the v8 changelog? https://chromium.googlesource.com/v8/v8.git/+/master/ChangeLog
- how can you tell when all these future v8 versions will be stable? https://chromium.googlesource.com/v8/v8.git/+refs
- why must a node major version correspond to a specific v8 version? e.g. node v5 uses v8 4.6 and won't upgrade to 4.7
pi@bekkpi2 ~ $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash | |
.. | |
pi@bekkpi2 ~ $ source ~/.nvm/nvm.sh | |
.. | |
pi@bekkpi2 ~ $ nvm install 4.2.2 | |
.. | |
pi@bekkpi2 ~ $ cat /etc/*-release |
scp -i ~/.tessel/id_rsa node/tessel-export.js root@oogie_boogie.local:/usr/lib/node |
function explicit(ctx, fn) { | |
return function() { | |
try { | |
const result = fn.apply(ctx, arguments) | |
return [null, result] | |
} catch (err) { | |
return [err, null] | |
} | |
} |