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
avatar { | |
border-radius: 10%; | |
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.09), 0 6px 20px 0 rgba(0, 0, 0, 0.21); | |
width: 110px; | |
} |
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
<head> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script> | |
</head> | |
<body> | |
<label for="locationTextField">Location</label> | |
<input id="locationTextField" type="text" size="50"> | |
<script> | |
function init() { |
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
#installing heroku | |
wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh | |
heroku login | |
----login | |
----pwd | |
heroku create | |
git config --list | grep heroku | |
git push heroku heroku-deployment:master |
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
<section class="admin-products-new"> | |
<header class="page-header"> | |
<h1>Login</h1> | |
</header> | |
<div class="row"> | |
<div class="col-sm-6 col-sm-offset-1"> | |
<%= form_for :user, url: '/sessions' do |form| %> |
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
<h1>Login</h1> | |
<%= form_tag '/sessions/' do %> | |
Email: <%= text_field_tag :email %> | |
Password: <%= password_field_tag :password %> | |
<%= submit_tag "Submit" %> | |
<% end %> |
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
#create a new model | |
bin/rails generate model Article title:string text:text | |
bin/rails generate model Comment commenter:string body:text article:references | |
- it creates a migration in db/migrate | |
#create a controller | |
bin/rails generate controller Comments | |
#run migration | |
bin/rake db:migrate |
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
cp config/database.example.yml config/database.yml | |
bin/rails s -b 0.0.0.0 --- run rails using the current project version | |
s is shorter for server | |
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
nvm ls --- show node version | |
rvm rubies --- show ruby version | |
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
# git extras add funtionalities to git, such as git ignore --- git ignore build "node_modules" --- | |
sudo apt-get install git-extras | |
#open touchegg config file | |
xdg-open ~/.config/touchegg/touchegg.conf | |
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> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
NewerOlder