SpiderMonkey:
> 0++;
SyntaxError: invalid increment operand
V8:
SpiderMonkey:
> 0++;
SyntaxError: invalid increment operand
V8:
| body { | |
| width: 600px; | |
| font:normal 14px/1.62 arial, sans-serif; | |
| } | |
| .mod { | |
| margin-bottom:100px; | |
| background-color:#efc; | |
| } | |
| .pic { | |
| margin-right: 20px; |
| <!DOCTYPE html> | |
| <meta charset=utf-8 /> | |
| <title>Defining JavaScript functions, the ES6 way</title> | |
| <h1>Defining JavaScript functions, the ES6 way</h1> | |
| <em>Use Firefox 22 (Firefox Nightly)</em> | |
| <script> |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>CSS animations</title> | |
| <style> | |
| .spin { | |
| -webkit-animation: 3s rotate linear infinite; | |
| animation: 3s rotate linear infinite; | |
| background: red; |
| function retry(isDone, next) { | |
| var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
| var id = window.setInterval( | |
| function() { | |
| if (isDone()) { | |
| window.clearInterval(id); | |
| next(is_timeout); | |
| } | |
| if (current_trial++ > max_retry) { | |
| window.clearInterval(id); |
| /*! | |
| * jQuery JavaScript Library v2.1.1pre | |
| * http://jquery.com/ | |
| * | |
| * Includes Sizzle.js | |
| * http://sizzlejs.com/ | |
| * | |
| * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors | |
| * Released under the MIT license | |
| * http://jquery.org/license |
| -- See http://apple.stackexchange.com/questions/19146/is-fine-volume-adjustment-possible-in-os-x-lion | |
| set volume output volume 0 --mute | |
| set volume output volume 100 --100% | |
| set volume output volume 27 --27% |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/bash | |
| # --- Version history --- | |
| # mrn: sleep for $freq instead of 3 seconds (forked) | |
| # 0.4: added variable to store file path, and $2 for base file name | |
| # added variable to store desired reporting interval | |
| # 0.3: added $1 to send in process ID at run time. | |
| # 0.2: switched to $SECONDS for the loop. works. | |
| # 0.1: didn't work well at all. | |
| # --- Version history --- |