Skip to content

Instantly share code, notes, and snippets.

@dgreen
dgreen / unpackCanvasSubmissions.pl
Last active October 20, 2018 22:53
Unpack a Canvas Submission
#!/usr/bin/env perl -w
# File: unpack_canvas_submissions.pl
# Desc: unpack submissions.zip from Canvas
# Vers: 1.1 dgg 20181020 - update for Mac Mojave (and any changes due to recent Canvas updates)
# Vers: 1.0 dgg 20171129 - fixup syntax for High Sierra Perl and declare version 1.0
# Vers: 0.3 dgg 20171108 - move original submissions.zip to trash
# Vers: 0.2 dgg 20170910 - eliminate copy of submissions.zip
# Vers: 0.1 dgg 20160216 - original coding
#
# Limitation: Present version is tied to MacOS, Linux
@dgreen
dgreen / Drop Action.scpt
Last active November 4, 2018 05:31 — forked from cdzombak/Drop Action.scpt
OmniFocus AppleScript to move an action to my "❌ Dropped" context and mark it completed.
-- Drop an action
-- Mark it "Complete" and add front tag of "❌ Dropped"
--
tell application "OmniFocus"
tell front document
try
set droppedTag to first tag where its name contains "Dropped"
on error
display alert "No tag found whose name ends with “" & "Dropped”"
return
@dgreen
dgreen / rtftomarkdown.rb
Created October 11, 2012 04:43 — forked from ttscoff/rtftomarkdown.rb
Convert RTF/DOC files to Markdown via Textutil
#!/usr/bin/ruby
# Uses textutil, available on Mac only (installed by default)
# Usage: rtftomarkdown.rb FILENAME.rtf
# Outputs to STDOUT
if ARGV.length == 0
puts "#{__FILE__} expects an RTF input file as an argument"
exit
end
@dgreen
dgreen / Default (OSX).sublime-keymap
Created August 11, 2012 06:02 — forked from FichteFoll/prettify_markdown_table.py
Plugin for Sublime Text 2 that "prettifies" MultiMarkdown tables and aligns their vertical separators
[
{
"keys": ["ctrl+k"], "command": "prettify_markdown_table"
}
]