Skip to content

Instantly share code, notes, and snippets.

--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=.*->.*$/\1/f,function/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/^class @?([a-zA-Z_$.][0-9a-zA-Z_$.]*)( extends [a-zA-Z_\$][0-9a-zA-Z_$.]*)?$/\1/c,class/
--regex-coffee=/^[ \t]*(@|this\.)([a-zA-Z_$][0-9a-zA-Z_$]*).*$/\2/e,export/
--regex-coffee=/^[ \t]*@?([a-zA-Z_$][0-9a-zA-Z_$]*)[ \t]+:.*[-=]>.*$/\1/f,function/
--regex-coffee=/^[ \t]*([a-zA-Z_$][0-9a-zA-Z_$]*)[ \t]+=.*[-=]>.*$/\1/f,function/
--regex-coffee=/^[ \t]*([a-zA-Z_$][0-9a-zA-Z_$]*)[ \t]+=[^->\n]*$/\1/v,variable/
--regex-coffee=/^[ \t]*@?([a-zA-Z_$][0-9a-zA-Z_$]*):.*$/\1/p,property/
@bkudria
bkudria / .cvimrc
Last active August 29, 2015 14:08
.cvimrc
let blacklists = ["https://mail.google.com/*"]
map j scrollPageDown
map k scrollPageUp
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Seon-Wook Park</author>
</meta>
<bindings>
<select itemPath="feed.entry" produces="XML">
<inputs>
<key id='url' type='xs:string' paramType='variable' required='true' />
require 'optparse'
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
GEMFILE
system 'bundle'
end
@bkudria
bkudria / flymake-fringe-icons.el
Created December 29, 2010 21:56
Add icons in the fringe, for flymake
(require 'fringe-helper)
(require 'flymake)
(defvar flymake-fringe-overlays nil)
(make-variable-buffer-local 'flymake-fringe-overlays)
(defadvice flymake-make-overlay (after add-to-fringe first
(beg end tooltip-text face mouse-face)
activate compile)
(push (fringe-helper-insert-region
@bkudria
bkudria / flymake-ruby.el
Created December 29, 2010 19:51
Steve Purcell's Ruby Flymake support, with stricter warnings.
;;; A flymake handler for ruby-mode files
;;;
;;; Author: Steve Purcell
;;; Homepage: http://github.com/purcell/emacs.d/blob/master/site-lisp/flymake-ruby/flymake-ruby.el
;;;
;;; Usage:
;;; (require 'flymake-ruby)
;;; (add-hook 'ruby-mode-hook 'flymake-ruby-load)
LazyStruct.new({:a=>1, :b => 2}).a # => 2
# That's wrong. Why?
= semantic_form_for @user do |form|
= form.inputs do
= form.input :name, :label => 'Name'
= form.input :business_unit
= form.buttons
class BusinessUnit
include Mongoid::Document
field :name, :type => String
embeds_many :users
end