Skip to content

Instantly share code, notes, and snippets.

View inem's full-sized avatar

Ivan Nemytchenko inem

View GitHub Profile
@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

#!/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 / 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')

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.

#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)
<%= init_fb_connect('XFBML', :js => :jquery) %>
@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
@inem
inem / README.md
Last active August 29, 2015 14:18 — forked from syntagmatic/README.md

Null values indicated by space character.

def authorize_key_for_root(config, *key_paths)
[*key_paths, nil].each do |key_path|
if key_path.nil?
fail "Public key not found at following paths: #{key_paths.join(', ')}"
end
full_key_path = File.expand_path(key_path)
if File.exists?(full_key_path)
config.vm.provision 'file',