# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
This is a list of Ember components that can hopefully inspire your own solution to handle some really common cases. Please let me know of more.
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
<%= f.collection_check_boxes :venue_ids, Venue.all, :id, :name, checked: Venue.all.map(&:id) do |b| %> | |
<span> | |
<%= b.check_box %> | |
<%= b.label %> | |
</span> | |
<% end %> |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
-
Data Down / Actions Up
- http://emberjs.jsbin.com/nayaho/edit?html,js - Interdependent select boxes. No observers.
- http://ember-twiddle.com/2d7246875098d0dbb4a4 - One Way Input
-
Plain JSBin's
-
Ember Version Base JSBin's
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 JSXBailError(message) { | |
this.message = message; | |
} | |
function JSXReadError(message, parser) { | |
var sx = syn.syntaxFromToken({ | |
type: null, | |
value: 'nothing matters', | |
lineStart: parser.lineStart(), | |
lineNumber: parser.lineNumber(), |
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
http://www.youtube.com/watch?v=q_gy8EgN8FE | |
http://www.youtube.com/watch?v=L1B_HpCW8bs&feature=youtu.be&t=0s | |
http://www.youtube.com/watch?v=xxFtyT9TlXE | |
http://www.octolabs.com/blogs/octoblog/2014/04/22/service-oriented-authentication-railsconf/ | |
http://jagthedrummer.github.io/service_oriented_authentication/#/50 | |
http://blog.yorkxin.org/posts/2013/11/05/oauth2-tutorial-grape-api-doorkeeper-en | |
http://anti-pattern.com/adding-a-new-strategy-to-omniauth | |
https://github.com/plataformatec/devise | |
https://github.com/doorkeeper-gem/doorkeeper |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine
to administer the local Docker engine.
- Docker Machine + Docker
- curl
- A Virtualbox-driven Docker Machine called "default"
docker-machine create --driver virtualbox default
(this is the default with Docker toolkit).