By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| "scripts": { | |
| "dev": "node .dev/webpack.dev.server.js", | |
| "dev-prod": "node .dev/webpack.dev.server.js --production", | |
| "build": "rimraf ./dist && webpack --config .dev/webpack.config.production.js --colors", | |
| }, | |
| "devDependencies": { | |
| "@babel/core": "7.0.0-beta.38", | |
| "@babel/plugin-proposal-class-properties": "7.0.0-beta.38", | |
| "@babel/plugin-proposal-decorators": "7.0.0-beta.38", | |
| "@babel/plugin-transform-classes": "7.0.0-beta.38", |
| /* Polyfill indexOf. */ | |
| var indexOf; | |
| if (typeof Array.prototype.indexOf === 'function') { | |
| indexOf = function (haystack, needle) { | |
| return haystack.indexOf(needle); | |
| }; | |
| } else { | |
| indexOf = function (haystack, needle) { | |
| var i = 0, length = haystack.length, idx = -1, found = false; |
| /* Precompute Morph Target Shape | |
| I needed 12 Morph Target but Three JS supports only 8 at runtime. | |
| Since we did not use them for animation we used this to precompute our meshes. | |
| By soundyogi, adapted from jspdown | |
| */ | |
| var vertices = geometry.attributes.position.array; | |
| var morphTargets = geometry.morphAttributes.position; | |
| var verticesReference = vertices.slice() |
| // Minimal version of MeshBasicMaterial | |
| // But removed everything except shadow | |
| // then only render the shadow | |
| var shadowMaterial = { | |
| transparent: true, | |
| uniforms: THREE.UniformsUtils.merge([ | |
| THREE.UniformsLib['common'], | |
| THREE.UniformsLib['shadowmap'] | |
| ]), |
| # Because the new api docs miss so much information like nonce and apisign-ing I copied it from the google cache: | |
| Developer's Guide - Api | |
| Overview | |
| Bittrex provides a simple and powerful REST API to allow you to programatically perform nearly all actions you can from our web interface. All requests use the application/json content type and go over https. The base url is https://bittrex.com/api/{version}/. All requests are GET requests and all responses come in a default response object with the result in the result field. Always check the success flag to ensure that your API call succeeded. | |
| We are currently restricting orders to 500 open orders and 200,000 orders a day. We reserve the right to change these settings as we tune the system. If you are affected by these limits as an active trader, please email [email protected]. | |
| If you have any questions, feedback or recommendation for API support you can post a question in our support center. |
| /* FLUX and UNIDIRECTIONAL DATAFLOW | |
| GOAL: We will build a very simple Redux-Like Flux in this File. | |
| Flux is the name for a pattern developed by facebook. | |
| Intead of relying on React to manage state - we just let it do what it is good at. | |
| Being a View Library. | |
| With an external Datastore and Discrete "Actions" that transform it, | |
| "Transactional State" can be achieved. | |
| It also enables clean and seperate pipelines between - external input "events" like | |
| the user clicking a button - and the data that actually has to change. | |
| This is called: "Unidirectional Dataflow" |
How to use packages that depend on Node.js core modules in React Native.
Node has several modules that are automatically available via
require(): http, crypto, etc. While these modules are available
in Node, they are not automatically available in other environments
| #zoom: 1 | |
| #spacing: 50 | |
| #padding: 15 | |
| #arrowSize: 0.5 | |
| #bendSize: 2 | |
| #direction: right | |
| #gutter: 5 | |
| #fill: #eee8d5; #fdf6e3 | |
| #font: Calibri |
| import 'rxjs'; | |
| import { Observable } from 'rxjs'; | |
| Observable.prototype.debug = function(_message) { | |
| const message = `EpicDebug: ${_message}`; | |
| return this.do( | |
| function(next) { | |
| if (__DEV__) { |