This file contains 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" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem 'slack-ruby-client' |
This file contains 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
$ rails generate sorcery:install | |
Running via Spring preloader in process 29650 | |
create config/initializers/sorcery.rb | |
gsub config/initializers/sorcery.rb | |
generate model User --skip-migration | |
Running via Spring preloader in process 29679 | |
invoke active_record | |
create app/models/user.rb | |
invoke test_unit | |
create test/models/user_test.rb |
This file contains 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
$ rails new <NAME> | |
### Gemfile のアップデート | |
# Gemfile | |
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
ruby '2.5.1' |
This file contains 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
def say_hello(name) | |
puts "Hello, #{name}" | |
end | |
say_hello('ryo') |
This file contains 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
[user] | |
name = name | |
email = name@example.com | |
[alias] | |
log = log --graph --date=short | |
pr = pull-request -b develop | |
unstage = reset -q HEAD -- | |
amend = commit --amend | |
uncommit = reset --mixed HEAD~ | |
discard = checkout -- |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<article> | |
<header> | |
<h1>カレーのレシピ</h1> |
This file contains 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
# LANG=C | |
export LANG=C | |
# sshkey read. | |
sshaddl=`ssh-add -L` | |
username = `uname -n` | |
case $sshaddl in | |
"The agent has no identities.") | |
ssh-add /Users/$username/.ssh/id_rsa ;; |
This file contains 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
" color scheme | |
" get => https://raw.githubusercontent.com/tomasr/molokai/master/colors/molokai.vim | |
" change : ctermfg=222 => ctermfg=227 | |
colorscheme molokai | |
syntax on | |
let g:molokai_original = 1 | |
let g:rehash256 = 1 | |
set background=dark | |
set t_Co=256 |
This file contains 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
{ | |
// encoding & line ending | |
"default_encoding": "UTF-8", | |
"fallback_encoding": "UTF-8", | |
"default_line_ending": "unix", | |
"show_encoding": true, | |
"show_line_endings": true, | |
// UI | |
"caret_style": "smooth", |
This file contains 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
# windows install java. for slink(mklink) memo | |
# launch admin permission. | |
mklink /D "新しく作りたいシンボリックリンクのフルパス" "リンクさせたいディレクトリのフルパス" |
NewerOlder