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
require 'google/apis/drive_v3' | |
require 'googleauth' | |
require 'googleauth/stores/file_token_store' | |
require 'fileutils' | |
credentials_dir = File.join(Dir.home, '.credentials') | |
CLIENT_SECRETS_PATH = File.join(credentials_dir, 'client_secret.json') | |
CREDENTIALS_PATH = File.join(credentials_dir, 'sampleApp.yaml') | |
OOB_URI = 'urn:ietf:wg:oauth:2.0:oob' |
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
# connect to ec2 | |
*[ ~ ] $: mv Downloads/tomajax.pem .ssh/ | |
*[ ~ ] $: cd .ssh/ | |
*[ .ssh ] $: chmod 600 tomajax.pem | |
*[ .ssh ] $: ssh -i tomajax.pem [email protected] | |
----------------------------------------- | |
# add user | |
[ec2-user|~]$ sudo adduser tomajax | |
[ec2-user|~]$ sudo passwd tomajax |
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
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | |
\\\\\ NOTES \\\\\ | |
\\\\\ 1) commands with prefix[*] \\\\\ | |
\\\\\ should be runned on local \\\\\ | |
\\\\\ 2) remove '=begin' & '=end' \\\\\ | |
\\\\\ before copy & paste codes \\\\\ | |
\\\\\ 3) make sure to create your \\\\\ | |
\\\\\ ec2 instance with linux \\\\\ | |
\\\\\ 4) how to create vpc & ec2 \\\\\ | |
\\\\\ ref: youtu.be/TDaLNHOL-h4 \\\\\ |
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
近接の基本的な目的は「 組織化 」にあります。関連する要素を近づけてグループ化するだけで、自動的に組織構造が出来上がるのです。組織だてられた情報は、読まれやすくまた記憶にも残りやすくなります。 |
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
/* | |
*= require_tree . | |
*= require_self | |
*/ |
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 ApplicationMailer < ActionMailer::Base | |
default from: "メールテスト運営局", | |
bcc: "[email protected]", | |
reply_to: "[email protected]" | |
layout 'mailer' | |
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
-# 変更なし |
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 Fruit | |
constructor: (@name) -> | |
hello_world: -> alert "Hello #{@name}!" | |
class Apple extends Fruit | |
hello_world: -> super(); alert "...said Bob." | |
sungold = new Apple "SunGold" | |
sungold.hello_world() |
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
%body | |
= render "layouts/header" | |
- flash.each do |key, value| | |
- key = "info" if key == "notice" | |
- key = "danger" if key == "alert" | |
= content_tag :div, value, class: "alert alert-#{key}" | |
= yield | |
= render "layouts/footer" |
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
−−− | |
- d1 | |
- d2 | |
- d3 | |
--- | |
- x1 | |
- x2 | |
#=> | |
["d1", "d2", "d3"] | |
["x1", "x2"] |
NewerOlder