Skip to content

Instantly share code, notes, and snippets.

View inem's full-sized avatar
🌰
In progress

Ivan Nemytchenko inem

🌰
In progress
View GitHub Profile
@inem
inem / css_js_principles.txt
Created September 15, 2011 00:41 — forked from astashov/css_js_principles.txt
General Organizational Principles for CSS and JS in Rails
==== 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
<%= init_fb_connect('XFBML', :js => :jquery) %>
#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 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.

@inem
inem / Rakefile
Created July 19, 2010 02:18 — forked from andreyvit/Rakefile
require 'rake/clean'
HAML = FileList['**/*.haml']
LESS = FileList['**/*.less']
COFFEE = FileList['**/*.coffee']
HTML = HAML.ext('html')
CSS = LESS.ext('css')
JS = COFFEE.ext('js')
#!/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
@inem
inem / clients.md
Created April 18, 2010 14:33 — forked from defunkt/clients.md

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@inem
inem / clients.md
Created April 18, 2010 14:33 — forked from defunkt/clients.md

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@inem
inem / .irbrc.rb
Created April 6, 2010 09:01 — forked from dekart/.irbrc.rb
# Put this content to ~/.irbrc file (no extension)
require "rubygems"
begin
require "ap"
rescue LoadError => err
puts "Cannot find awesome_print gem. Please run 'gem install awesome_print' to install it."
end
@inem
inem / _maps.sass
Created March 18, 2010 05:38 — forked from Sutto/_maps.sass
.gmap.map-preview
:width 540px
:height 400px
:margin 5px auto
:border 5px solid #DDD
:background #F1F1F1 url('/images/map-placeholder.jpg') center center no-repeat