Skip to content

Instantly share code, notes, and snippets.

# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences.
# Instructions:
# Go to TextMate > Preferences...
# Click Advanced
# Select Folder References
# Replace the following:
# File Pattern
@eddiefisher
eddiefisher / currency_in_words_helper.rb
Created June 21, 2013 14:49
перевод на русский был портирован отсюда: http://habrahabr.ru/post/53210/
module CurrencyInWordsHelper
ActionView::Helpers::NumberHelper.class_eval do
DEFAULT_CURRENCY_IN_WORDS_VALUES = {:currencies=>{:default=>{:unit=>{:one=>'dollar',:many=>'dollars'},
:decimal=>{:one=>'cent',:many=>'cents'}}},
:connector=>', ',:format=>'%n',:negative_format=>'minus %n'}
# Formats a +number+ into a currency string (e.g., 'one hundred dollars'). You can customize the
# format in the +options+ hash.
#
#settings_tabs {
.tabs.table_tools_segmented_control { margin-bottom: 10px; }
fieldset.inputs {
padding: 0;
background: transparent;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
box-shadow: none;
-moz-box-shadow: none;
brew install imagemagick
if: checking for wand/MagickWand.h... no
then:
mdfind MagickWand.h
/usr/local/Cellar/imagemagick/•.•.•-•/include/ImageMagick/wand/MagickWand.h
C_INCLUDE_PATH=/path gem install rmagick
if: pkg-config: command not found
then: brew install pkg-config
@eddiefisher
eddiefisher / admin.css.scss
Last active December 14, 2015 12:59
Ruby on Rails: nice style for ActiveAdmin
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body.active_admin {
form {
#{$all-text-inputs},textarea,select[multiple="multiple"] {
border: 1px solid #c9d0d6; @include rounded(3px); font-size: 1em; outline: none; padding: 5px 5px 7px; margin-bottom: 5px;