$ sudo yum -y install zsh
現在のログイン・シェル確認
$ echo $SHELL
利用可能なシェルの一覧
$ sudo yum -y install zsh
現在のログイン・シェル確認
$ echo $SHELL
利用可能なシェルの一覧
require "octokit" | |
before_rep = "name/repname" | |
after_rep = "other_name/other_repname" | |
client = Octokit::Client.new(access_token: ENV["GITHUB_API_TOKEN"]) | |
options = { | |
state: :all |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bashrc
exec $SHELL
var Hoge; | |
(function() { | |
var instance; | |
Hoge = function Hoge(argument1, argument2) { | |
if (instance) { | |
return instance; | |
} | |
instance = this; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# apps/web/config/routes.rb | |
get '/', to: 'home#index' | |
get '/show', to: 'home#show' |
class ApplicationForm | |
include ActiveModel::Model | |
include ActiveModel::Attributes | |
def self.copy_validations_from(model) | |
attribute_types.keys.each do |key| | |
model.validators_on(key).each do |validator| | |
validates(key, validator.kind => validator.options) | |
end | |
end |
#!/usr/bin/env ruby | |
require 'pathname' | |
require 'fileutils' | |
include FileUtils | |
# path to your application root. | |
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) | |
def system!(*args) | |
system(*args) || abort("\n== Command #{args} failed ==") |
class ApplicationForm | |
include ActiveModel::Model | |
include ActiveModel::Attributes | |
def self.copy_validations_from(model) | |
attribute_types.keys.each do |key| | |
model.validators_on(key).each do |validator| | |
validates(key, validator.kind => validator.options) | |
end | |
end |