- Scaffold & build a sample angular app with gulp tasks
- Bring in react & ngReact along with webpack gulp task
- Per component migration
- Per page migration
- Router switch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { reduxForm } from 'redux-form' | |
import { validator } from 'rzp/utils/validator' | |
@reduxForm({ | |
name: 'formName', | |
validate: validator({ | |
firstName: { | |
presence: true, | |
message: 'First name can\'t be blank', | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="react-root"> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage | |
# ``` | |
# sh ./parser.sh -p=/path/to/logs/directory -s=start_date -e=end_date | |
# TODO: need to wire the cli options | |
# ``` | |
# This output csv will be generated in the same directory where the script is run | |
## Parse the command line options |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic - Plain Array | |
<PowerSelect | |
options={items} | |
selected={this.state.selectedValue} | |
onChange={this.handleChange} | |
> | |
{ | |
({ results }) => ( | |
results.map(item => <Option option={item}>{item}</Option>) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import DummyMixin from '../mixins/dummy-mixin' | |
const BarBaz = Ember.Component.extend({ | |
handleClick() { | |
console.log('bar-baz --- reopenClass'); | |
// This will throw error | |
this.popup(); | |
// But this will work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
click(event) { | |
this.get('onClick')(event); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = require('path') | |
var NodeRSA = require('node-rsa'); | |
var builder = require('xmlbuilder'); | |
var pem = fs.readFileSync(path.join(__dirname, 'publicKey.pem')) | |
var key = new NodeRSA(pem); | |
var exportedPem = key.exportKey('components-public-pem'); | |
var xml = builder.create('RSAKeyValue') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actions: { | |
goToHell() { | |
return true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
asyncCP: Ember.computed({ | |
get() { | |
return DS.PromiseObject({ | |
promise: this.asyncTask() |