Skip to content

Instantly share code, notes, and snippets.

View runkmc's full-sized avatar
💭
I may be slow to respond.

Kevin McGladdery runkmc

💭
I may be slow to respond.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am runkmc on github.
  • I am kmcg (https://keybase.io/kmcg) on keybase.
  • I have a public key ASBjs1QpZT_tlotLz8UHddm2mS5uAarmx38eSuxYvIP39wo

To claim this, I am signing this object:

@runkmc
runkmc / snipper.rb
Last active August 29, 2015 14:02 — forked from fgalassi/README
Ultisnip snippets for rubymotion
#!/usr/bin/env ruby
require 'FileUtils'
File.open('motion.snippets', 'w') do |snippets_file|
snippets = {}
File.read('tags').each_line do |line|
next unless line.match /^\w+:/
line =~ /^(([^:]*):([^\s]*))\s.*/
snippet = $1
method = $2
args = $3
On the outskirts are celery marshes
Which only a few years ago
Were as wet as a drugstore in Kansas
And as worthless as marshes could grow,
Well some genius bethought him to drain them
And to add in a short year or two
About eighty-five thousand dollars
To the income of Kalamazoo.
The Michigan Insane Asylum
@runkmc
runkmc / squish.rb
Last active December 23, 2015 03:49
def squish!
gsub!(/\A[[:space:]]+/, '')
gsub!(/[[:space:]]+\z/, '')
gsub!(/[[:space:]]+/, ' ')
self
end
first line
second line
fifth line
sixth line
seventh line
first line
second line
ninth line
first line
second line
third line
fourth line
fifth line