Skip to content

Instantly share code, notes, and snippets.

View stoyan-ekupov's full-sized avatar
🏃‍♂️

Stoyan Ekupov stoyan-ekupov

🏃‍♂️
View GitHub Profile
@stoyan-ekupov
stoyan-ekupov / Deploying React on Rails to Elastic Beanstalk
Created January 13, 2020 19:24
Deploying React on Rails to Elastic Beanstalk
## Deploying React on Rails to Elastic Beanstalk
In order to deploy a React on Rails app to elastic beanstalk, you must install yarn on each instance. If yarn is not installed, asset compilation will fail on the elastic beanstalk instance.
You can install yarn by adding a 0x_install_yarn.config file to your .ebextensions folder which contains these commands.
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/09_yarn.sh" :
mode: "000755"
owner: root
group: root
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@stoyan-ekupov
stoyan-ekupov / iterm2-solarized.md
Created March 30, 2017 13:33 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@stoyan-ekupov
stoyan-ekupov / controllers.application.js
Last active December 11, 2016 08:50
Ember JsTree Demo
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@stoyan-ekupov
stoyan-ekupov / capybara cheat sheet
Created February 18, 2016 09:33 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=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')
@stoyan-ekupov
stoyan-ekupov / Pomodoro Timer.markdown
Last active September 6, 2015 17:24
Pomodoro Timer