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
ActiveRecord::Migration.class_eval do | |
create_table :posts do |t| | |
t.string :title | |
t.text :body | |
end | |
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
$color: blue; | |
a{ | |
color: $color; | |
} |
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 User < ActiveRecord::Base | |
def restauraunts | |
if self.age > 20 | |
Restauraunt.all | |
else | |
Restauraunt.where( serves_alcohol: false ) | |
end | |
end | |
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
$color: chris; | |
a{ | |
color: $color; | |
} |
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
$color: chris; | |
a{ | |
color: $color; | |
} |
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
require 'date' | |
require 'octokit' | |
require './env.rb' if File.exists? './env.rb' | |
class Contribart | |
attr_accessor :dates | |
def initialize | |
@client = Octokit::Client.new(:access_token => GH_TOKEN ) |
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
li{ | |
display:inline-block; | |
a{ | |
display:block; | |
padding:1em; | |
text-decoration:none; | |
&:hover{ | |
text-decoration:underline; | |
} | |
} |
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
.shape{ | |
border:5px solid red; | |
} | |
.square{ | |
@extend .shape; | |
width:100px; | |
height:100px; | |
} |
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
.shape{ | |
border:5px solid red; | |
} | |
@mixin size( $dimensions ){ | |
height:$dimensions; | |
width:$dimensions; | |
} | |
.square{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.