View Gemfile
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' |
View gist:b5b1a05dddda42e95f2104d3773310ac
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 |
View gist:463d5333c1e6c89e3cdee13a869b82bb
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' |
View gist_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
def say_hello(name) | |
puts "Hello, #{name}" | |
end | |
say_hello('ryo') |
View .gitconfig
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 -- |
View gist:4e7c1a2b1f3c1df7059b
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> |
View .bashrc
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 ;; |
View .vimrc
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 |
View sublime_user_setting.json
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", |
View gist:d94b4fe3be8053ad8599
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