- updaters/model and actions/model should be far more extensible and, in fact, should not come packaged with redux-actions
As an ember developer accustomed to the "batteries-included" mentality of sensible defaults and convention over configuration, getting into the groove of react-native can be a little tricky - especially for seemingly should-be-simple things such as including fonts in our app.
In ember-cli land, installing font-awesome (or any font) was done with a simple cli command: ember install ember-cli-font-awesome
. In react native, similar packages exist, but the installation instructions require a little more research on my part. Here's how it's done:
- install the https://github.com/oblador/react-native-vector-icons npm package via
npm install --save react-native-vector-icons
- manually drag-and-drop the fonts I want from the node_modules like so:
mkdir -p assets/fonts
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 ajax from 'ember-ajax/request'; | |
import { task } from 'ember-concurrency'; | |
const { isPresent, get, set } = Ember; | |
export default Ember.Component.extend({ | |
loadTask: task(function*(uri) { | |
const { links } = yield ajax(uri); | |
return links; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ember Starter Kit</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember-template-compiler.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember.debug.js"></script> | |
<style id="jsbin-css"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ember Starter Kit</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember-template-compiler.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember.debug.js"></script> | |
<style id="jsbin-css"> |
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' | |
}); |
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'; | |
const { RSVP } = Ember; | |
const { anime } = window; | |
const scrollHolder = async (i) => new RSVP.Promise((resolve) => anime({ | |
targets: '.card-scroller', | |
translateX: -i * 225, | |
easing: 'easeInOutSine', | |
duration: 750, |
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
function maturityYield(presVal, couponRate, time) | |
f(y) = 1 / y ^ time + sigma(1:time, t -> couponRate / y ^ t) - presVal | |
fzero(f, 0.5, 2.5) | |
end |
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({ | |
tagName: 'li', | |
prisoners: [], | |
actions: { | |
enprison(person) { | |
this.get('prisoners').pushObject(person); |
Here's is a quick-and-dirty summary of all the important things (from the point of view of SONY and PSNOW) that happened at Ember Conf 2018.
- nucleartide's notes https://github.com/nucleartide/emberconf-2018