Access this Gist via this shortened URL: https://git.io/vPj49
If anything changes, with regards to the material covered in this course, this will be the first place I share updates.
/ spec/components/previews/forms/simple_form_preview/basic_form.html.slim | |
= simple_form_for(mail_search_object, url: "/fake/search") do |f| | |
= f.input :to | |
= f.input :subject, hint: "Explanation for this field" | |
= f.button :submit, "Search" |
Access this Gist via this shortened URL: https://git.io/vPj49
If anything changes, with regards to the material covered in this course, this will be the first place I share updates.
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
theme: Ember.inject.service() | |
// ... | |
}); |
Handy helpers for controlling visibility of elements until Vue has compiled.
Use like:
<div v-cloak>
<h1>
<span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
<span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->
brew update | |
brew link yasm | |
brew link x264 | |
brew link lame | |
brew link xvid | |
brew install ffmpeg | |
ffmpeg wiki: | |
https://trac.ffmpeg.org/wiki/Encode/MP3 |
Sync in Loopback requires Loopback in the client as well the server.
Loopback attaches a replicate
method to each Model Class.
Lets say I define a model called 'RemoteMat' in my loopback server. In my client loopback app, I define a local varient of this model called 'LocalMat'.
My app would use Browserify to package Loopback for the client.
On first app load, I would call a Bi-direction replication (or syncronization) method. This is currently not implament in Loopback but it is easy to create. I will go into more detials later.
# be sure to comment out the require 'capistrano/deploy' line in your Capfile! | |
# config valid only for Capistrano 3.1 | |
lock '3.2.1' | |
set :application, 'my-cool-application' | |
# the base docker repo reference | |
set :name, "johns-stuff/#{fetch(:application)}" |
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
import Ember from 'ember'; | |
export default Ember.Mixin.create({ | |
/* | |
This hook is guaranteed to be executed when the root element of this view has been inserted into the DOM. | |
*/ | |
didInsertElement : function(){ | |
this._super(); | |
Ember.run.scheduleOnce('afterRender', this, this.afterRenderEvent); |
App.LibraryRoute = App.ApplicationRoute.extend({ | |
activate: function () { | |
//no longer enter | |
this._super(); | |
only called once on entering a route. | |
}, | |
beforeModel: function () { | |
// any state you want in place before the model is initialized, this is called before any model promises are resolved | |
// also could be used to conditionally prevent access to a route by throwing transition.abort |