- normalize.css is cooler than a reset
- Everyone is using a preprocessor -- SASS or LESS
- Shinier image replacement technique
- border-box will change your life
- Nice media query cheatsheet
- The book on CSS3
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
model() { | |
return {}; | |
}, | |
}); |
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
# Just put this into lib/, and add your methods! | |
# Usage: Features.your_feature_name? | |
class Features | |
# Admin-only features? We've got that! | |
def self.reticulate_splines? | |
current_user && current_user.admin? | |
end | |
# Don't want to deploy to flip it on or off? It supports that! |
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
<div class="box"> | |
foo | |
</div> | |
<div class="panel"> | |
hai | |
</div> | |
<div class="widget"> | |
lolz |
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
<div></div> |
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 Channel | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
end | |
def silent? | |
# code here to determine whether or not the channel is silent | |
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
class Task < ActiveRecord::Base | |
belongs_to :project | |
validates_presence_of :project_id | |
validate do | |
unless project.status == 'funded' | |
errors.add(:base, 'Project must be funded') | |
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
$categories: | |
watersports-repair #ad1d17, | |
anti-fog #f25012, | |
clean-deodorize #881f7f, | |
wetsuit-drysuit-maintenance #738821, | |
dive-essentials #0072b7; | |
@each $category in $categories{ | |
$class: nth($category, 1); | |
$color: nth($category, 2); |
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 nokogiri -v=1.4.4 -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib |
NewerOlder