Skip to content

Instantly share code, notes, and snippets.

View CJKinni's full-sized avatar
👋
Hi!

C.J. Kinniburgh CJKinni

👋
Hi!
View GitHub Profile
@CJKinni
CJKinni / pre-commit
Last active August 29, 2015 14:15
Chrome Extension auto-increment version number and zip extension on commit via git hooks
#!/usr/bin/env ruby
require 'json'
filename = './manifest.json'
text = File.read(filename)
json = JSON.parse(text)
oldVersion = json['version']
@ttscoff
ttscoff / markdownediting_headlines.sublime-keymap
Created August 22, 2012 02:30
Markdown headlines for Sublime Text 2
// Keybinding for Sublime Text to wrap selection in hashmarks with padding space, incrementally up to six marks
{ "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#${0: ${SELECTION/(^ | $)//g} }#"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "#{6}", "match_all": true }
]
}
@CJKinni
CJKinni / archiveTweets.rb
Last active December 5, 2022 17:50
Download your twitter posts into a single markdown file
#!/usr/bin/ruby
=begin
This script turns downloadable tweets from twitter into a markdown
based text file timeline.
To run, change the 'Username' and 'TwitterFilename' below.
I THINK that this is all working. Check the previous gist version
for a more stable script with far fewer features. Let me know in the