Skip to content

Instantly share code, notes, and snippets.

View etc's full-sized avatar
💭
Tillin' the wasteland sands.

Brad Weslake etc

💭
Tillin' the wasteland sands.
View GitHub Profile
@etc
etc / convertnotes.rb
Created September 27, 2011 19:54
A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra style footnotes.
#!/usr/bin/env ruby
# A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra
# style footnotes.
#
# Possibly useful for those who are migrating from Wordpress to Jekyll, were
# using WP-Footnotes, and wish to render their new Markdown pages with Kramdown
# (which supports PHP Markdown Extra style footnotes).
#
# For example, you might first run https://github.com/thomasf/exitwp and then run
@etc
etc / onename.txt
Created March 18, 2016 14:16
Onename
Verifying that +bradweslake is my blockchain ID. https://onename.com/bradweslake
@etc
etc / crosspopulate.rb
Created September 18, 2011 20:09
Populate fields missing in one BibTeX::Entry from those present in another BibTeX::Entry
def crosspopulate(entry,parententry)
parententry.fields.keys.each do |k|
entry[k] = parententry[k] unless entry.has_field?(k)
end # each
return entry
end # def crosspopulate