Skip to content

Instantly share code, notes, and snippets.

[
{
"keys": ["n"], "command": "navigate_results",
"context": [
{"key": "setting.command_mode", "operand": true}
//{"key": "setting.todo_results"}
],
"args": {"direction": "forward"}
},
{
[
{
"caption": "Align",
"command": "alignment"
},
{
"caption": "Preferences: Alignment File Settings – Default",
"command": "open_file",
def decompose(statement)
a1 = statement.split(/\W+/)
a2 = statement.split(/\w+/)
a2.delete_at(0)
a2.each_index do |i|
a1.insert(2*i+1,a2[i])
end
a1
#require './spec/spec_helper.rb'
require "ruby2ruby"
require "ruby_parser"
require 'instant'
source = "def hello
a=1
end; hello"
runner = Instant::Runner.new
@erinata
erinata / gist:5489201
Created April 30, 2013 14:46
gemfile.lock example
GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.3)
actionpack (= 3.0.3)
mail (~> 2.2.9)
actionpack (3.0.3)
activemodel (= 3.0.3)
activesupport (= 3.0.3)
@erinata
erinata / gist:5489247
Created April 30, 2013 14:54
Gemfile.lock example 2
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.13)
actionpack (= 3.2.13)
mail (~> 2.5.3)
actionpack (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
builder (~> 3.0.0)
bfriends_math
bfristu_math
bstudymates_math
fristu_chinese
fristu_chist
fristu_conduct_early
fristu_conduct_fe
fristu_conduct_intera
fristu_conduct_interx
fristu_english_interx
@erinata
erinata / -
Last active August 29, 2015 14:22
12345
bfriends_math
bfristu_math
bstudymates_math
fristu_chinese
fristu_chist
fristu_conduct_early
fristu_conduct_fe
fristu_conduct_intera
fristu_conduct_interx
fristu_english_interx
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.