(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.
| function createRoundedRectPath(x, y, width, height, radius) { | |
| return ( | |
| // Move to position, offset by radius in x direction | |
| "M" +(x + radius) + "," + y | |
| // Draw a horizontal line to the top right curve start | |
| + "h" + (width - 2 * radius) | |
| // Draw the top right corner curve | |
| + "a" + radius + "," + radius + " 0 0 1 " + radius + "," + radius | |
| // Draw a vertical line to the bottom right corner | |
| + "v" + (height - 2 * radius) |
| @mixin valid-quantity($quantity) { | |
| @if type-of($quantity) != 'number' { | |
| @error 'The "quantity" parameter must be a number!'; | |
| } | |
| @if not(unitless($quantity)) { | |
| @error 'The "quantity" parameter must not have a unit!'; | |
| } | |
| @if $quantity < 0 { | |
| @error 'The "quantity" parameter must be at least 0!'; | |
| } |
| var SphereControls = function (camera, domElement, config) { | |
| var self = this; | |
| config = config || {}; | |
| domElement = ( domElement !== undefined ) ? domElement : document; | |
| domElement.addEventListener( 'mousedown', onDocumentMouseDown, false ); | |
| domElement.addEventListener( 'mousemove', onDocumentMouseMove, false ); | |
| domElement.addEventListener( 'mouseup', onDocumentMouseUp, false ); |
| /* | |
| THREE.CSG | |
| @author Chandler Prall <chandler.prall@gmail.com> http://chandler.prallfamily.com | |
| Wrapper for Evan Wallace's CSG library (https://github.com/evanw/csg.js/) | |
| Provides CSG capabilities for Three.js models. | |
| Provided under the MIT License | |
| */ |
(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.
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |