(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
import Ember from 'ember'; | |
import { computed } from '@ember/object'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
items: computed(function() { | |
// return [1]; | |
// return [1,2]; | |
// return [1,2,3]; | |
// return [1,2,3,4]; |
class Admin::Api::BaseController < Admin::BaseController | |
after_filter :set_csrf_cookie | |
# For client side js applications needing to qualify for Rails CSRF protection | |
# Normally rails will return its csrf token in the body of the request for html rendering | |
# | |
# In the case of client side apps, we return the token in a cookie | |
# See: https://technpol.wordpress.com/2014/04/17/rails4-angularjs-csrf-and-devise/ | |
def set_csrf_cookie | |
cookies['X-CSRF-TOKEN'] = form_authenticity_token if protect_against_forgery? |
#!/bin/bash | |
# Fail if any commands fail | |
set -e | |
set -o pipefail | |
# These are ec2 tags from which we will determine where to deploy | |
ec2_stage=$DEPLOY_STAGE | |
ec2_app="core" | |
ec2_role="app" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ember Starter Kit</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script> |
TinyMCE is a javascript WYSIWYG editor that is highly configurable and has a ton of features and plugins. It integrates with jQuery and, with a bit of work, it can be integrated in your ember-cli app.
Step 1: Install TinyMCE:
bower install --save tinymce
Step 2: Import the required files into your app via broccoli. In order to do that you will need a plugin called broccoli-static-compiler
:
# a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes | |
# NOTE: requires the faker or ffaker gem | |
# sudo gem install faker - http://faker.rubyforge.org | |
# OR | |
# sudo gem install ffaker - http://github.com/EmmanuelOga/ffaker | |
require 'faker' | |
class Fakeout |
# config/application.rb | |
module MyApp | |
class Application < Rails::Application | |
config.autoload_paths << config.root.join('lib') | |
end | |
end |