Updated for Rails 4.0.0+
-
Set up the
bower
gem. -
Follow the Bower instructions and list your dependencies in your
bower.json
, e.g.// bower.json
{
/*global ionic*/ | |
// for example usage, see http://codepen.io/premiumfrye/pen/pJMOZe | |
angular.module('pf-mobilePolyForm', []) | |
.directive('mobileFormPolyfill', function ($timeout, $parse) { | |
// keep track of our input fields for jumping to the next | |
var inputs = [], | |
// any other methods declared in template for ng-keydown that we'll want called | |
keydownFns = []; |
# Fixing permissions of packaged gems | |
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/pre/10_fixing_permission.sh": | |
content: | | |
#!/usr/bin/env bash | |
# . /opt/elasticbeanstalk/containerfiles/envvars | |
. /opt/elasticbeanstalk/support/envvars | |
CACHE_GEM_DIR=$EB_CONFIG_APP_ONDECK/vendor/cache |
# http://stackoverflow.com/questions/14972253/simpleform-default-input-class | |
# https://github.com/plataformatec/simple_form/issues/316 | |
inputs = %w[ | |
CollectionSelectInput | |
DateTimeInput | |
FileInput | |
GroupedCollectionSelectInput | |
NumericInput | |
PasswordInput |
var app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope, $timeout) { | |
$scope.save = function(){ | |
$scope.loading = true; | |
$timeout(function(){ | |
$scope.loading = false; | |
}, 3000); | |
}; |
Updated for Rails 4.0.0+
Set up the bower
gem.
Follow the Bower instructions and list your dependencies in your bower.json
, e.g.
// bower.json
{
# encoding: utf-8 | |
Refinery::I18n.configure do |config| | |
config.enabled = true | |
config.default_locale = :en | |
config.current_locale = :en | |
config.default_frontend_locale = :en |
# Run with: rake environment elasticsearch:reindex | |
namespace :elasticsearch do | |
desc "re-index elasticsearch" | |
task :reindex => :environment do | |
klass = Place | |
ENV['CLASS'] = klass.name | |
ENV['INDEX'] = new_index = klass.tire.index.name << '_' << Time.now.strftime('%Y%m%d%H%M%S') |
#!/usr/bin/perl -w | |
# Copyright 2010 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"). You may not | |
# use this file except in compliance with the License. A copy of the License | |
# is located at | |
# | |
# http://aws.amazon.com/apache2.0/ | |
# |
def compile_asset?(path) | |
# ignores any filename that begins with '_' (e.g. sass partials) | |
# all other css/js/sass/image files are processed | |
if File.basename(path) =~ /^[^_].*\.\w+$/ | |
puts "Compiling: #{path}" | |
true | |
else | |
puts "Ignoring: #{path}" | |
false | |
end |
worker_processes 1; | |
error_log /usr/local/var/log/nginx.error.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |