Skip to content

Instantly share code, notes, and snippets.

@smithzvk
smithzvk / mirror-google-docs.el
Created January 10, 2014 20:58
Syncing Google Docs and Emacs. Do not use for anything serious! See http://directed-procrastination.blogspot.com/2011/06/syncing-emacs-with-google-documents.html for more info
;; See http://directed-procrastination.blogspot.com/2011/06/syncing-emacs-with-google-documents.html for more info
;; Okay, here is the plan. You need to run a browser in a different display (so
;; it does'nt mess up your focus). You need the following programs: Emacs,
;; xdotool, xsel, xpra, and of course X windows.
;; 1. Setup the mirroring by evaluating (setup-mirror).
;; 2. Start xpra:
@smithzvk
smithzvk / hacker-rank-submission.lisp
Created January 6, 2014 17:38
HackerRank submission code for Common Lisp. This will grab source from quicklisp, create a monolithic source file that is suitable for upload to HackerRank. Also a bunch of comments and poorly edited thoughts.
;; This file contains tools that can be used to package solutions to submit to
;; the hacker-rank even if they use programs from Quicklisp. This is done by
;; using Quicklisp to grab the source (to be done), then using ASDF to track
;; down dependencies, then grabbing the entire source file and inserting it into
;; a single file for submission. Your code is placed at the end of the file and
;; is read and evaluated from a string in a situation where the desired
;; libraries are instantiated.
;; This can be used with any ASDF reachable library (or this is at least the
;; This little hack makes it a bit easier to get colons in your programs. This
;; modifies the semicolon insert function such that if a string of semicolons
;; are followed by a non-whitespace character or a member of the list
;; *soft-semicolons-also-convert-on* but not a member of
;; *soft-semicolons-dont-convert-on*, then all of those semicolons are converted
;; into "full" colons.
;; Any command that is performed in between the typing of the last semicolon and
;; the typing of the next character will reset the string of semicolons that are
;; candidates for conversion to start at the current point.