Add name to User model
rails g migration AddNameToUser name:string
Add devise's registrations views to our project
rails g devise:views users -v registrations
0% - 00 | |
1% - 03 | |
2% - 05 | |
3% - 08 | |
4% - 0A | |
5% - 0D | |
6% - 0F | |
7% - 12 | |
8% - 14 | |
9% - 17 |
/** | |
* Copyright 2004-present Facebook. All Rights Reserved. | |
*/ | |
/* eslint-disable */ | |
'use strict'; | |
/*eslint consistent-return: 0*/ |
Add name to User model
rails g migration AddNameToUser name:string
Add devise's registrations views to our project
rails g devise:views users -v registrations
one: | |
name: One | |
email: [email protected] | |
encrypted_password: <%= Devise::Encryptor.digest(User, 'password') %> | |
two: | |
name: Two | |
email: [email protected] | |
encrypted_password: <%= Devise::Encryptor.digest(User, 'password') %> |
Add gems
group :test do
gem 'rails-controller-testing', '0.1.1'
gem 'minitest-reporters', '1.1.9'
gem 'guard', '2.13.0'
gem 'guard-minitest', '2.4.4'
end
Add gems
gem 'carrierwave', '0.11.2'
gem 'mini_magick', '4.5.1'
gem 'fog', '1.38.0'
Run rails g uploader Image
#!/bin/sh | |
base=$1 | |
if [ -z $base ] | |
then | |
echo No argument given | |
else | |
## | |
## iOS files | |
convert "$base" -resize 20x20! "Icon-20.png" |
mkdir output
ffmpeg -i Untitled.mov -vf scale=640:-1 -r 3 output/ffout%3d.png
convert -delay 1 -loop 0 output/ffout*.png output/output.gif
convert output/output.gif -fuzz 10% -layers Optimize output/result.gif
.elevation-2 { | |
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), | |
0px 2px 2px 0px rgba(0, 0, 0, 0.14), | |
0px 1px 5px 0px rgba(0, 0, 0, 0.12); | |
} | |
.elevation-3 { | |
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), | |
0px 3px 4px 0px rgba(0, 0, 0, 0.14), | |
0px 1px 8px 0px rgba(0, 0, 0, 0.12); |
display4: 7rem 112px light 300 | |
display3: 3.5rem 56px regular 400 | |
display2: 2.813rem 45px regular 400 | |
display1: 2.215rem 34px regular 400 | |
headline: 1.5rem 24px regular 400 | |
title: 1.25rem 20px medium 500 | |
subheading2: 1rem 16px regular 400 | |
subheading1: .938rem 15px regular 400 | |
body2: .875rem 14px medium 500 | |
body1: .875rem 14px regular 400 |