- aaaa
- bbbb
- cccc
This file contains hidden or 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
| { | |
| "shortWordLength": 2, | |
| "cutShortWordDescription": 30, | |
| "parseWordsLimit": 8, | |
| "lookupWithCapitalized": false, | |
| "initialPosition": "right", | |
| "scroll": "scroll", | |
| "skipPdfConfirmation": false, | |
| "pdfUrl": "", | |
| "backgroundColor": "#282a36", |
This file contains hidden or 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
| #!/bin/sh | |
| rails_version="${RAILS_VERSION:-latest}" | |
| ruby_version="${RUBY_VERSION:-2.3}" | |
| docker run --rm -v `pwd`:/usr/src/app rails:$rails_version rails new /usr/src/app --database mysql --git --force | |
| cat << __EOT__ > Dockerfile | |
| FROM ruby:$ruby_version | |
| ENV LANG C.UTF-8 |
This file contains hidden or 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
| 'use strict'; | |
| //npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev | |
| var gulp = require('gulp'), | |
| clean = require('gulp-clean'), | |
| cleanhtml = require('gulp-cleanhtml'), | |
| minifycss = require('gulp-minify-css'), | |
| jshint = require('gulp-jshint'), | |
| stripdebug = require('gulp-strip-debug'), |
This file contains hidden or 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
| source 'https://rubygems.org' | |
| source 'https://rails-assets.org' | |
| ・・・ | |
| gem 'rails-assets-BOWER_PACKAGE_NAME' |
This file contains hidden or 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
| class Profile < ActiveRecord::Base | |
| belongs_to :user | |
| # … | |
| end |
This file contains hidden or 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
| class ApplicationController < ActionController::Base | |
| protect_from_forgery | |
| protected | |
| def current_user | |
| @current_user ||= User.find_by_id(session[:user_id]) | |
| end | |
| def signed_in? |