-
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
-
Other
- http://emberjs.jsbin.com/rwjblue/251/edit?html,js,output - Opening a window and communicate with it.
- http://emberjs.jsbin.com/rwjblue/55/edit - Using liquid-fire animations in globals mode.
- http://emberjs.jsbin.com/rwjblue/593/edit - Modify computed dependent keys after initialization.
- http://emberjs.jsbin.com/siforo/edit?js,output - Define computed property after object initialization.
-
http://emberjs.jsbin.com/rwjblue/299/edit?js,output - simplified version of ic-ajax
This file contains 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
require 'open-uri' | |
input = URI.open("https://gist.githubusercontent.com/ronakjain90/3dcfef6a752f77b3e8202ad9844195ae/raw/599eaaeec9f47b70a44da3454a731fee639efff3/input.txt").readlines | |
current_directory = [] | |
directories = Hash.new { |h, k| h[k] = 0 } | |
input | |
.map(&:chomp) | |
.map(&:split) | |
.each do |line| |
This file contains 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
/* | |
[Best Practices for Beginners](http://net.tutsplus.com/tutorials/JavaScript-ajax/24-JavaScript-best-practices-for-beginners/) | |
[Airbnb styleguides](https://github.com/airbnb/JavaScript) | |
[Write better query](http://flippinawesome.org/2013/11/25/writing-better-jquery-code/) | |
[Best practices guide for JavaScript](https://github.com/stevekwan/best-practices/blob/master/javascript/best-practices.md) | |
[The Essentials of Writing High Quality JavaScript](http://net.tutsplus.com/tutorials/JavaScript-ajax/the-essentials-of-writing-high-quality-JavaScript/) | |
[Increase your jquery performance](http://net.tutsplus.com/tutorials/JavaScript-ajax/10-ways-to-instantly-increase-your-jQuery-performance/) | |
*/ | |
// Old - ifElse |
This file contains 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains 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
# Last modified: 2012 Jul 19 | |
# Author: Florian CROUZAT <contact@floriancrouzat.net> | |
# Feel free to do whatever you want with this file. | |
# Just make sure to credit what deserve credits. | |
#killall tmux; tmux # kill tmux sessions | |
# make selection from mouse -OPT select | |
#PREFIX : -> bring command prompt | |
#PREFIX ? -> bring key-bindings | |
#PREFIX , -> rename current window |