git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| didInitAttrs(options) { | |
| console.log('didInitAttrs', options); | |
| }, | |
| didUpdateAttrs(options) { | |
| console.log('didUpdateAttrs', options); | |
| }, |
| http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query | |
| http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails | |
| #payload: [{"kind"=>"person"}] | |
| Segment.where("payload @> ?", [{kind: "person"}].to_json) | |
| #data: {"interest"=>["music", "movies", "programming"]} | |
| Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json) | |
| Segment.where("data #>> '{interest, 1}' = 'movies' ") | |
| Segment.where("jsonb_array_length(data->'interest') > 1") |
| // https://gist.github.com/samselikoff/b00b5a190321c8236ee0e0fab200bf65 | |
| import { run } from '@ember/runloop'; | |
| export default function pushMirageDbIntoStore(server, store) { | |
| const tables = Object.keys(server.schema); | |
| tables.forEach((table) => { | |
| if (server.schema[table].all) { | |
| const all = server.schema[table].all(); | |
| const modelName = all.modelName; |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |