This file contains 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' | |
}); |
This file contains 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', | |
stringify: Ember.computed(function() { | |
let stringify = JSON.stringify(EmberObject); | |
return stringify; | |
}), | |
parse: Ember.computed('stringify', function() { |
This file contains 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
#!/usr/bin/env bash | |
# Check for Homebrew, install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
# brew update | |
# Binaries | |
binaries=( |
This file contains 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
This? |
This file contains 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: { | |
work(event){ | |
event.preventDefault(); | |
alert('woah'); | |
} | |
} |
This file contains 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
/* | |
* Adds options to the `ember build` and `ember serve` commands to configure | |
* which API endpoints will be hit as well as whether to disable mirage or not. | |
*/ | |
var ServeCommand = require('ember-cli/lib/commands/serve'); | |
var BuildCommand = require('ember-cli/lib/commands/build'); | |
var TestCommand = require('ember-cli/lib/commands/test'); | |
var DeployCommand = require('ember-cli-deploy/lib/commands/deploy'); |
This file contains 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 React, { Component } from 'react'; | |
import { | |
Text, | |
Image, | |
StyleSheet | |
} from 'react-native'; | |
import { | |
Card, | |
CardItem, |
This file contains 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({ | |
init: function() { | |
this._super.apply(this, arguments); | |
console.log(this.get('tagName')); | |
}, | |
whatIsTheTagName: Ember.computed('tagName', function() { | |
let tagName = this.get('tagName'); | |
if (tagName === null) { |
This file contains 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 React, { Component } from 'react' | |
class App extends Component { | |
render() { | |
let isCondition = false; | |
let Component = isCondition ? <OneComponent /> : <AnotherComponent />; | |
return ( | |
<div> | |
<Component /> |