Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| require "find" | |
| require "eventmachine" | |
| # === Usage === | |
| # project-watcher.rb --no-daemon -- run | |
| # project-watcher.rb -- run as a daemon | |
| # project-watcher.rb --debug -- run in debug mode |
This file contains hidden or 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 'rake/clean' | |
| HAML = FileList['**/*.haml'] | |
| LESS = FileList['**/*.less'] | |
| COFFEE = FileList['**/*.coffee'] | |
| HTML = HAML.ext('html') | |
| CSS = LESS.ext('css') | |
| JS = COFFEE.ext('js') |
This is how you can do truly semantic clearfixing easily in Sass.
The @extend directive is used to inherit the .group class for other selectors. Sass takes care of spreading the selectors around for you.
This file contains hidden or 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
| #Config is there http://github.com/spyou/vim-config | |
| #Give a go to vimtutor in order to have a little overview of Vim. | |
| "open/save" | |
| #:w (save) | |
| #:q (quit) | |
| #:qa (quit all buffers) | |
| #:q! (quit without saving) | |
| #:wq (save and quit) |
This file contains hidden or 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
| <%= init_fb_connect('XFBML', :js => :jquery) %> |
This file contains hidden or 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
| ==== General Organizational Principles for CSS and JS in Rails | |
| === Framework requirements | |
| 1. Modularity | |
| 2. Complex components are built from simple, atomic components | |
| 3. Cross-browser compatibility | |
| a. Follow W3C standards | |
| b. Keep IE hacks in a separate style file | |
| 4. Bulletproof |
Null values indicated by space character.