A module to automatically translate snake_case method calls into CamelCase method calls. For example:
class MyObject
include Snakeable
def FooBar
"baz"
end
end
| " out of date | |
| " | |
| " lingceng vimrc | |
| " | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " vundle plugins ----------- {{{ | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim |
| " ctrlp.vim | |
| " | |
| " cd D:/Vim/vimfiles | |
| " git clone https://github.com/kien/ctrlp.vim.git bundle/ctrlp.vim | |
| " | |
| " :helptags D:\Vim\vimfiles\bundle\ctrlp.vim\doc | |
| " | |
| set runtimepath^=D:\Vim\vimfiles\bundle\ctrlp.vim |
| " out of date | |
| " see https://github.com/lingceng/lingceng-config | |
| " | |
| " Grep Operator Vim Plugin | |
| " | |
| " Description: | |
| " Grep text recursively in current file and open the quickfix window. | |
| " | |
| " Install: | |
| " Put this plugin here ~/.vim/plugin/grep-operator.vim |
| # out of date | |
| # see https://github.com/lingceng/lingceng-config | |
| [user] | |
| name = zhongkx | |
| email = [email protected] | |
| [push] | |
| default = simple | |
| [alias] | |
| st = status | |
| ci = commit |
A module to automatically translate snake_case method calls into CamelCase method calls. For example:
class MyObject
include Snakeable
def FooBar
"baz"
end
end
| // http://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit | |
| // form_submit('/contact/', {name: 'Johnny Bravo'}); | |
| function form_submit(path, params, method) { | |
| method = method || "post"; // Set method to post by default if not specified. | |
| // The rest of this code assumes you are not using a library. | |
| // It can be made less wordy if you use one. | |
| var form = document.createElement("form"); | |
| form.setAttribute("method", method); | |
| form.setAttribute("action", path); |
| table | |
| thead | |
| tr | |
| th = sort_link(@q, :number) | |
| th = sort_link(@q, :production_status) | |
| th = sort_link(@q, :current_step) | |
| th = order_name(:production_type) | |
| th = order_name(:type) | |
| th = order_name(:brand) | |
| th = order_name(:color) |
| <%= search_form_for @q, url: production_status_changes_path, class: 'form-inline' do |f| %> | |
| <%= f.label 'Create At' %> | |
| <%= f.search_field :created_at_end_of_day_lteq, class: 'form-control input-sm', 'datepicker' => true %> | |
| <% end %> |
| # https://github.com/rails/rails/pull/15106 | |
| unless File.exist?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'arel', github: 'rails/arel' | |
| gem 'sqlite3' | |
| GEMFILE | |
| system 'bundle' |
| " Require SyntaxRange vim plugin | |
| call SyntaxRange#IncludeEx('matchgroup=NonText keepend start="^sass" end="^\S"he=e-1,re=e-1 containedin=ALL', 'sass') | |
| call SyntaxRange#IncludeEx('matchgroup=NonText keepend start="^coffee" end="^\S"he=e-1,re=e-1 containedin=ALL', 'coffee') |