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
# Base image. | |
FROM fotinakis/baseimage-ruby:2.1.3 | |
# System dependencies for gems. | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends libmysqlclient-dev | |
# Add 'web' user which will run the application. | |
RUN adduser web --home /home/web --shell /bin/bash --disabled-password --gecos "" |
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
import Ember from 'ember'; | |
/** | |
Targets a component's actions to bubble immediately to the application controller and | |
through the route hierarchy, skipping any parent component action handlers. | |
This allows us to avoid passing redundant args like: | |
<my-component myAction={{action "myAction"}} myOtherAction={{action "myOtherAction"}}> | |
...through many layers of nested components, at the cost of highly-coupling the actions |
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
[ | |
{ "keys": ["alt+."], "command": "reveal_in_side_bar" } | |
] |
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
CREATE USER 'some_user'@'%' IDENTIFIED BY '<autogenerated password here>'; | |
GRANT ALL PRIVILEGES ON dbname.* TO 'some_user'@'%' REQUIRE SSL; |
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
RSpec.configure do |config| | |
# Freeze time and truncate microseconds in all examples. | |
config.around(:each) do |example| | |
# Truncate microseconds to avoid test flakiness when the DB truncates microseconds | |
now_without_microseconds = Time.now.in_time_zone.change(usec: 0) | |
travel_to(now_without_microseconds) do | |
example.run | |
end | |
end | |
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
#!/usr/bin/env ruby | |
# | |
# Usage: | |
# chmod +x percy-uploader.rb | |
# PERCY_TOKEN=<PERCY-REPO-WRITE-TOKEN> ./percy-uploader.rb | |
require 'percy' | |
require 'find' | |
require 'digest' |
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
RSpec.feature :homepage, js: true do | |
def finished_all_animations? | |
page.evaluate_script('$(":animated").length') == 0 | |
end | |
def wait_for_animation | |
Timeout.timeout(Capybara.default_wait_time) do | |
sleep 0.1 until finished_all_animations? | |
end | |
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
$.fx.off = true; |
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
*, *::before, *::after { | |
-moz-transition: none !important; | |
transition: none !important; | |
-moz-animation: none !important; | |
animation: none !important; | |
} |
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
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
Thumbs.db |
OlderNewer