Use q + [lowercase letter to name the macro]
then do stuff and when done q
and @a or 22@a
to repeat.
s:url("../images/\(.*\)");:url("<%= asset_path '\1' %>");:gi
%% --------------------------------------------------------------------- | |
%% | |
%% Copyright (c) 2007-2015 Basho Technologies, Inc. All Rights Reserved. | |
%% | |
%% This file is provided to you under the Apache License, | |
%% Version 2.0 (the "License"); you may not use this file | |
%% except in compliance with the License. You may obtain | |
%% a copy of the License at | |
%% | |
%% http://www.apache.org/licenses/LICENSE-2.0 |
#!/usr/bin/env ruby | |
# findbreaks 0.9 | |
# Script to find all spec files in an `rspec` run that report errors and produce | |
# a list of all failed spec filenames, with each such listed once. Useful if you | |
# have numerous specs that break due to a world-changing edit you've just made, | |
# and you want a nice list of the broken specs without having to read through | |
# hundreds of lines of RSpec bleeding on your terminal. Pick one; fix it; run | |
# this again; repeat. | |
# |
require_relative './clojure-1.8.0.jar' | |
def clojure; Java::ClojureLang; end | |
i = clojure.PersistentHashMap.create(a: 'b') | |
puts i[:a] #=> 'b' |
create trigger trades_readonly_trigger before insert or update or delete or truncate on trades for each statement execute procedure readonly_trigger_function(); |
# Rails Stuff | |
alias stoprails='kill -9 $(lsof -i :3000 -t)' | |
alias startrails='rails server -d' | |
alias restartrails='stopRails && startRails' | |
#Check PHP For Erroes | |
alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l' | |
# ROT13-encode text. Works for decoding, too! ;) | |
alias rot13='tr a-zA-Z n-za-mN-ZA-M' |
発表資料はこちら https://www.slideshare.net/tomoyaishida1238/ruby-227588719
!eval s="$><< '!%sl s=%%p'% :eva%s"
https://gist.github.com/tompng/d79e12f3d056cf12c1448a097035bdf3
name | glyph | mac | other | description |
---|---|---|---|---|
curly single quotes | ‘ ’ | Option+] and Shift+Option+] | ALT-0145 and ALT-0146 | hover for description |
curly double quotes | “ ” | Option+[ and Shift+Option+[ | ALT-0147 and ALT-0148 | - |