| Emberconf 2016 | |
|---|---|
| 💻 | emberconf.com |
| 📢 | Building Stateful UIs with Ember.js |
| 🗓 | March 29-30, 2016 |
| 📍 | Portland, OR 🇺🇸 |
| Ruby on Ales 2016 (Attending only) | |
|---|---|
| 💻 | ruby.onales.com |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle' | |
| }); |
| { | |
| "trips": [{ | |
| "date": "11-4-2015", | |
| "destination": { | |
| "name": "Tokyo, Japan", | |
| "lat": "35.6833", | |
| "lng": "139.6833" | |
| } | |
| }, { | |
| "date": "11-14-2015", |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
| Emberconf 2016 | |
|---|---|
| 💻 | emberconf.com |
| 📢 | Building Stateful UIs with Ember.js |
| 🗓 | March 29-30, 2016 |
| 📍 | Portland, OR 🇺🇸 |
| Ruby on Ales 2016 (Attending only) | |
|---|---|
| 💻 | ruby.onales.com |
| defmodule Peepchat.Router do | |
| use Peepchat.Web, :router | |
| pipeline :api do | |
| plug :accepts, ["json", "json-api"] | |
| end | |
| scope "/api", Peepchat do | |
| pipe_through :api | |
| # Route stuff to our SessionController |
| import Ember from 'ember'; | |
| export default Ember.LinkComponent.extend({ | |
| }); |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| queryParams: ['a'], | |
| a: "" | |
| }); |
| defmodule MyApp.User do | |
| def changeset(model, params \\ :empty) do | |
| model | |
| |> cast(params, @required_fields, @optional_fields) | |
| |> validate_format(:email, ~r/@/) | |
| |> validate_length(:password, min: 8) | |
| |> validate_format(:password, ~r/[0-9]+/, message: "Password must contain a number") # has a number | |
| |> validate_format(:password, ~r/[A-Z]+/, message: "Password must contain an upper-case letter") # has an upper case letter | |
| |> validate_format(:password, ~r/[a-z]+/, message: "Password must contain a lower-case letter") # has a lower case letter | |
| |> validate_format(:password, ~r/[#\!\?&@\$%^&*\(\)]+/, message: "Password must contain a symbol") # Has a symbol |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| w: 100, | |
| h: 200, | |
| kittehUrl: Ember.computed('w', 'h', function() { | |
| var { w, h } = this.getProperties(['w', 'h']); | |
| return `https://placekitten.com/${w}/${h}`; |