Currently it for clent-side apps only. Not for universall (isomorphic) apps. Will add it soon
I'm using the promise middleware to dispatch actions like this:
brew cask install google-chrome | |
brew cask install firefox | |
brew cask install skype | |
brew cask install spotify | |
brew cask install iterm2 | |
brew cask install atom | |
brew cask install virtualbox --appdir=/Applications | |
brew install azukiapp/azk/azk |
# elastic-mapreduce --create --name "Spark Example Project" --instance-type m1.xlarge --instance-count 3 \ | |
# --jobflow-role SparkRole --service-role EMR_DefaultRole \ | |
# --bootstrap-action s3://support.elasticmapreduce/spark/install-spark --bootstrap-name "Install Spark" \ | |
# --jar s3://elasticmapreduce/libs/script-runner/script-runner.jar --step-name "Run Spark Example Project" \ | |
# --step-action TERMINATE_JOB_FLOW \ | |
# --arg s3://snowplow-hosted-assets/common/spark/run-spark-job-0.1.0.sh \ | |
# --arg s3://sparkcluster/spark-example-project-0.2.0.jar \ | |
# --arg com.snowplowanalytics.spark.WordCountJob \ | |
# --arg s3n://sparkcluster/hello.txt \ | |
# --arg s3n://sparkcluster/results |
Currently it for clent-side apps only. Not for universall (isomorphic) apps. Will add it soon
I'm using the promise middleware to dispatch actions like this:
import React from 'react' | |
import { TextField, RaisedButton, FlatButton, Paper, Toggle, RadioButton, RadioButtonGroup, DropDownMenu } from 'material-ui' | |
//This is a HOC which adds required material-ui themes to the component | |
//You should be able to not use material-ui at all or add childContextTypes with the theme | |
import MuiComponent from '../containers/MuiComponent' | |
/* | |
You dont have to use these components so I recommened you change styles to you liking. | |
*/ | |
let FormValues; |
This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.
In that post I talked about 3 main reasons for moving from require.js to webpack:
Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.
react + redux + RR
It uses https://gist.github.com/iNikNik/3c1b870f63dc0de67c38 for stores and actions.
1) create redux
const redux = createRedux(state);
2) get requireAccess func => bindCheckAuth to redux
// with static data, do filtering and sorting in the client | |
<Autocomplete | |
initialValue="Ma" | |
items={getUnitedStates()} | |
getItemValue={(item) => item.name} | |
shouldItemRender={(item, value) => ( | |
state.name.toLowerCase().indexOf(value.toLowerCase()) !== -1 || | |
state.abbr.toLowerCase().indexOf(value.toLowerCase()) !== -1 | |
)} | |
sortItems={(a, b, value) => ( |
var pureRender = (Component) => { | |
Object.assign(Component.prototype, { | |
shouldComponentUpdate (nextProps, nextState) { | |
return !shallowEqual(this.props, nextProps) || | |
!shallowEqual(this.state, nextState); | |
} | |
}); | |
}; | |
module.exports = pureRender; |
# REST API documentation https://msdn.microsoft.com/en-us/library/azure/dn790664.aspx | |
curl -H 'Authorization: SharedAccessSignature sr={Service Bus Namespace}.servicebus.windows.net&sig={Url Encoded Shared Access Key}&se={Time Stamp with Shared Access Key expration}&skn={Shared Access Policy name}' -H 'Content-Type:application/atom+xml;type=entry;charset=utf-8' --data '{Event Data}' https://{Service Bus Namespace}.servicebus.windows.net/{Event Hub Name}/messages |