-
Install xcode
-
Install iTerm
-
Install oh-myzsh
-
Install sublimetext
-
Add alias sublimetext in .zshrc
-
Install brew
-
Install GPG
-
Install rvm (read notes after install), rvm notes, rvm requirements
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 Order < ActiveRecord::Base | |
has_many :line_items | |
end | |
class LineItem < ActiveRecord::Base | |
belongs_to :order | |
belongs_to :product | |
end | |
class Product < ActiveRecord::Base |
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
mkdir -p Sree/{Linux/{commands,shellscript},SQL/{basic,advance},DBA/{Oracle,MySQL}} | |
# the explanation | |
# mkdir -p Sree/{ | |
# Linux/{ | |
# commands, | |
# shellscript | |
# }, | |
# SQL/{ | |
# basic, |
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 SECTION --> | |
<!-- IE Edge Meta Tag --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!-- Viewport --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> |
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
# Following the RESTful conventions. Use 'admin/hackers' instead of 'admin/hacker_list' | |
# /config/routes.rb | |
# You can use this one, which allows you to add more routes into the admin namespace. | |
namespace :admin do | |
resources :hackers, only: [:index] | |
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
class Ej | |
class << self | |
def bar | |
my_method | |
end | |
private | |
def my_method | |
'hola mundo' | |
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
https://www.youtube.com/watch?v=HmWm21cCAXM | |
https://angular.io/docs/js/latest/quickstart.html | |
https://www.youtube.com/watch?v=XQzehz5i4Rg |
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
24 gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 | |
25 \curl -sSL https://get.rvm.io | bash -s stable | |
26 sudo apt-get install curl | |
27 \curl -sSL https://get.rvm.io | bash -s stable | |
28 rvm --version | |
29 source /home/emanuel/.rvm/scripts/rvm | |
30 rvm --version | |
31 rvm notes | |
32 rvm --version | |
33 rvm requirements |
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
module ActionView | |
module Layouts | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
module ClassMethods | |
def layout | |
p 'Hello World' | |
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
module ActionController | |
class Base | |
def self.layout | |
p "Hello World" | |
end | |
end | |
end | |
class ApplicationController < ActionController::Base | |
layout |