-
State of the union keynote was awesome and funny. https://www.youtube.com/watch?v=o12-90Dm-Qs. Tom & Yehuda gave a recap of what was achieved since last Ember conf and what they plan to achieve this year.
-
Fastboot is coming! It renders the Ember app server side via node and sends down the html payload for the initial state. This means that Ember apps can work with JS disabled… http://youtu.be/o12-90Dm-Qs?t=40m43s
-
Template syntax improvements are pretty nice. Consistent block syntax. Already available. https://gist.github.com/rupurt/75ca4629f75f19621731
-
Ember will be getting a new rendering engine based on HTMLBars this year. It will address several performance problems, especially rendering and re-rendering lists. It’s called Glimmer. Much of this was spurred on by a talk Ryan Florence gave @React.js Conf earlier in the year (http://youtu.be/z5e7kWSHWTg?t=1m28s watch up to 6:05). Here is a demo of the new Glimmer engine in action https://dbmonster.firebaseapp.com/. And a
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
Em.Application.initializer({ | |
name: 'currentUser', | |
initialize: function(container) { | |
var store = container.lookup('store:main'); | |
var currentUser = App.User.find('current'); | |
container.register('user:current', currentUser, { instantiate: false }); | |
container.injection('controller', 'currentUser', 'user:current'); | |
} |
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
Capybara.register_driver :webkit do |app| | |
connection = Capybara::Webkit::Connection.new(socket_class: TCPSocket, stderr: File.open('/dev/null', 'a')) | |
browser = Capybara::Webkit::Browser.new(connection) | |
Capybara::Webkit::Driver.new(app, browser: browser) | |
end |
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
Kss::Engine.routes.draw do | |
get '/someurl' => 'controllername#actionname' | |
root :to => 'home#index' | |
end |
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
Capybara.default_driver = :webkit | |
RSpec.configure do |config| | |
config.before(debug: true) do | |
Capybara.current_driver = :selenium | |
end | |
config.after(debug: true) do | |
Capybara.use_default_driver | |
end |
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
class PublicPerson | |
def initialize(name) | |
@name = name | |
end | |
def say_name | |
puts @name | |
end | |
def say_other_name(person) |
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
<style> | |
@font-face { | |
font-family: 'action_manbold_italic'; | |
src: url('https://youdomain.com/some_folder/action_man_bold_italic-webfont.eot'); | |
src: url('https://youdomain.com/some_folder/action_man_bold_italic-webfont.eot?#iefix') format('embedded-opentype'), | |
url('https://youdomain.com/some_folder/action_man_bold_italic-webfont.woff2') format('woff2'), | |
url('https://youdomain.com/some_folder/action_man_bold_italic-webfont.woff') format('woff'), | |
url('https://youdomain.com/some_folder/action_man_bold_italic-webfont.ttf') format('truetype'), | |
url('https://youdomain.com/some_folder/action_man_bold_italic-webfont.svg#action_manbold_italic') format('svg'); | |
font-weight: normal; |
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
#!/bin/bash | |
cd /usr/local/etc/openssl/certs/ | |
curl -O http://curl.haxx.se/ca/cacert.pem | |
mv cacert.pem cert.pem | |
echo "export SSL_CERT_FILE=/usr/local/etc/openssl/certs/cert.pem" >> ~/.bash_profile.local | |
source ~/.bash_profile |
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
curl https://gist.githubusercontent.com/rupurt/a9e35c8c219a37eb90f6/raw/2397544c86ef149eedc3a3e9c645f3eb3c7319a7/update_ssl_cert.sh > /tmp/update_ssl_cert.sh && chmod 744 /tmp/update_ssl_cert.sh && /tmp/update_ssl_cert.sh |
OlderNewer