(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.
(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.
| class API::V1::BaseController < ApplicationController | |
| skip_before_filter :verify_authenticity_token | |
| before_filter :cors_preflight_check | |
| after_filter :cors_set_access_control_headers | |
| def cors_set_access_control_headers | |
| headers['Access-Control-Allow-Origin'] = '*' | |
| headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' |
As a noob in investing, I kept hearing about record returns at top financial companies and hedge funds. So I figured, how hard can this be? Really?
Hence, I setup a personal challenge few years ago to not only learn but outperform top financial companies & hedge funds. I started working on algorithmic trading project. With an engineering background and a minor Economics, I had inadequate background, limited programming experience and funding; but loads of passion to accomplish this goal (a good enough combo).
Fast-forward 3 years later, I have created multiple trading algorithms in MATLAB, Python, AutoHotKey etc and managing 6 individual accounts (mine inclusive) with average annual returns of 15-20%; which is much better than average hedge fund, as measured by the Hedge Fund Research composite (HRFX) index. Not bad for a side project.
Author: https://www.cyanhall.com/
Core Animation's original name is Layer Kit
Core Animation is a compositing engine; its job is to compose different pieces of visual content on the screen, and to do so as fast as possible. The content in question is divided into individual layers stored in a hierarchy known as the layer tree. This tree forms the underpinning for all of UIKit, and for everything that you see on the screen in an iOS application.
In UIView, tasks such as rendering, layout and animation are all managed by a Core Animation class called CALayer. The only major feature of UIView that isn’t handled by CALayer is user interaction.
There are four hierarchies, each performing a different role:
| package com.guendouz.textclustering.preprocessing; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| /** | |
| * @author Mohamed Guendouz | |
| */ | |
| public class TFIDFCalculator { | |
| /** |
| var AWS = require('aws-sdk'), | |
| fs = require('fs'); | |
| // http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html#Credentials_from_Disk | |
| AWS.config.loadFromPath('./aws-config.json'); | |
| // assume you already have the S3 Bucket created, and it is called ierg4210-shopxx-photos | |
| var photoBucket = new AWS.S3({params: {Bucket: 'ierg4210-shopxx-photos'}}); | |
| function uploadToS3(file, destFileName, callback) { |
Note: if you want to skip history behind this, and just looking for final result see: rx-react-container
When I just started using RxJS with React, I was subscribing to observables in componentDidMount and disposing subscriptions at componentWillUnmount.
But, soon I realised that it is not fun to do all that subscriptions(that are just updating property in component state) manually, and written mixin for this...
Later I have rewritten it as "high order component" and added possibility to pass also obsarvers that will receive events from component.
Please refer to the TimeLapseBuilder-Swift repository on GitHub from now on.
I will leave the original code here as a reference, but new comments may be removed. Please open an issue on GitHub if you have questions or would like to contribute.
Thanks!
| var Col = require('react-bootstrap/lib/Col') | |
| var PageHeader = require('react-bootstrap/lib/PageHeader') | |
| var React = require('react') | |
| var Row = require('react-bootstrap/lib/Row') | |
| var {connect} = require('react-redux') | |
| var {reduxForm} = require('redux-form') | |
| var DateInput = require('./DateInput') | |
| var FormField = require('./FormField') | |
| var LoadingButton = require('./LoadingButton') |
Normally the installation of MySQL can be achieved with a single command, which executes a script provided by MacMiniVault :
bash <(curl -Ls http://git.io/eUx7rg)
However, at the time of writing the script is not compatible with OS X El Capitan (10.11)
An alternative to the aforementioned installation script is installing MySQL using Homebrew. This gist assumes you already have Homebrew installed, if not first read the article "Homebrew and El Capitan"
Make sure Homebrew has the latest formulae, so run brew update first