Skip to content

Instantly share code, notes, and snippets.

@avillafiorita
avillafiorita / .colors.csv
Created Jul 16, 2014
change osx terminal colors and font from the command line
View .colors.csv
LightPink1 #ffbdc5 255 189 197 {65535 48573 50629}
pink4 #9d777f 157 119 127 {40349 30583 32639}
pink3 #d7a3ad 215 163 173 {55255 41891 44461}
pink2 #f2b9c4 242 185 196 {62194 47545 50372}
pink1 #ffc3cf 255 195 207 {65535 50115 53199}
HotPink4 #9e4f75 158 79 117 {40606 20303 30069}
HotPink3 #d878a1 216 120 161 {55512 30840 41377}
HotPink2 #f383b5 243 131 181 {62451 33667 46517}
HotPink1 #ff87c1 255 135 193 {65535 34695 49601}
DeepPink4 #9e1e62 158 30 98 {40606 7710 25186}
@avillafiorita
avillafiorita / rails-partial.el
Created Feb 19, 2013
Emacs lisp commands for generating and inserting partials.
View rails-partial.el
;;; Support for creation and insertion of partials - v 0.1
;;; (c) 2013 Adolfo Villafiorita - Distributed under the MIT license
;;; Use it at your own risk.
(defun rails-region-to-partial (filename)
"Get current region and make it into a partial."
(interactive "FPartial file name: ")
(if (file-exists-p filename)
(message "File exists. It is a bad idea to overwrite it. Aborted.")
(progn