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
$ df -h | |
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on | |
/dev/disk1 930Gi 337Gi 593Gi 37% 88398098 155500723 36% / | |
devfs 192Ki 192Ki 0Bi 100% 664 0 100% /dev | |
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net | |
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home | |
/dev/disk2s1 298Gi 227Gi 71Gi 77% 67886 74958310 0% /Volumes/HD-PEU2 | |
/dev/disk3s1 521Mi 485Mi 36Mi 94% 124066 9268 93% /Volumes/Neverending Nightmares |
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
[クライアントID] | |
127036428910-2cihomq21p413jtu4ebmf4kvefi8v9p1.apps.googleusercontent.com | |
[クライアントシークレット] | |
2KR6kOI2hOs0QSKqqltrkyfi | |
[リダイレクトURI] | |
http://localhost |
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
$ gem install flickraw |
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
class DeviseCreateUsers < ActiveRecord::Migration | |
def change | |
create_table(:users) do |t| | |
## Database authenticatable | |
t.string :email, null: false, default: "" | |
t.string :encrypted_password, null: false, default: "" | |
## Recoverable | |
t.string :reset_password_token | |
t.datetime :reset_password_sent_at |
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' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.0' | |
group :development, :test do | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
gem 'rspec-rails' |
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
(省略)... | |
# Google map | |
gem 'gmaps4rails' | |
48 gem 'geocoder' |
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
<script src="//maps.google.com/maps/api/js?v=3.13&sensor=false&libraries=geometry" type="text/javascript"></script> | |
<script src='//google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.14/src/markerclusterer_packed.js' type='text/javascript'></script> | |
<div style='width: 800px;'> | |
<div id="map" style='width: 800px; height: 400px;'></div> | |
</div> | |
<script type="text/javascript"> | |
mapStyle = //使用したいSTYLEを貼り付ける |