Skip to content

Instantly share code, notes, and snippets.

View eddix's full-sized avatar

eddix eddix

  • Beijing
  • 04:00 (UTC +08:00)
View GitHub Profile
@eddix
eddix / application.rb
Created January 18, 2013 09:04
customize field error proc
# config/application.rb
config.action_view.field_error_proc = Proc.new { |html_tag, instance|
"#{html_tag}".html_safe
}
@eddix
eddix / _methods.scss
Created May 3, 2012 10:44
mixins for css3
@mixin rounded-corners ($radius: 5px) {
border-radius: $radius;
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
}
@mixin rounded_corner ($side: left, $radius: 5px) {
border-#{$side}-radius: $radius;
-webkit-border-#{$side}-radius: $radius;
-moz-border-#{$side}-radius: $radius;
@eddix
eddix / gist:1922644
Created February 27, 2012 09:07
TextMate 2 .tm_properties

This is all based on the [alpha release][1].

Properties

From the built-in help system:

For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).

These are simple setting = value listings where the value is a format string in which other variables can be referenced.