Skip to content

Instantly share code, notes, and snippets.

Paul W. Rankin rnkn

Block or report user

Report or block rnkn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hml.el
(defun toggle-hide-mode-line ()
"Toggle mode-line visibility in current buffer."
(interactive)
(if mode-line-format
(setq-local mode-line-format nil)
(kill-local-variable 'mode-line-format)))
(defalias 'hml 'toggle-hide-mode-line)
@rnkn
rnkn / Nicholl_Fellowship_sample.txt
Created Jan 2, 2018
Nicholl Fellowship sample plain text export from Fountain Mode
View Nicholl_Fellowship_sample.txt
For A Few Days More
written by
April Rider
April Rider
999 George Kaplan St NNW
Hitchcock, SD 57000
@rnkn
rnkn / Nicholl_Fellowship_sample.fdx
Last active Jan 2, 2018
Nicholl Fellowship sample Final Draft export from Fountain Mode
View Nicholl_Fellowship_sample.fdx
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<FinalDraft DocumentType="Script" Template="No" Version="1">
<Content>
<Paragraph Type="Action" StartsNewPage="">
<Text>FADE IN:</Text>
</Paragraph>
<Paragraph Number="1" Type="Scene Heading" StartsNewPage="">
<Text>INT. DRISKILL HOTEL SEMINAR ROOM - DAY</Text>
</Paragraph>
<Paragraph Type="Action" StartsNewPage="">
View feed.xml
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
>
@rnkn
rnkn / retinarize-icon.sh
Last active Apr 17, 2017
Script to convert PNG to Retina icon
View retinarize-icon.sh
#! /usr/bin/env bash
if [[ $(file "$1") =~ "PNG image data, 1024 x 1024" ]]
then echo -e "Input file:\t$1"
else echo "Error: Input file must be a PNG image, 1024 x 1024 pixels"
exit 1
fi
png=$(basename "$1")
iconset="${png%.*}.iconset"
View btcticker.sh
#! /usr/bin/env bash
eval $(/usr/libexec/path_helper)
source "${HOME}/.bashrc"
red=$(tput setaf 1)
green=$(tput setaf 2)
reset="\e[0m"
DATA=$(curl --silent https://api.bitfinex.com/v1/pubticker/btcusd)
HIGH=$(echo $DATA | jq ".high" | tr -d \")
View csvkit.rb
class Csvkit < Formula
desc "A suite of utilities for converting to and working with CSV, the king of tabular file formats"
homepage "https://csvkit.readthedocs.io"
url "https://github.com/wireservice/csvkit/archive/0.9.1.tar.gz"
sha256 "e4f5b72295d1756d67f08f62bb7da7316f85812bfe2d47cdca335b177bf3ad1a"
head "https://github.com/wireservice/csvkit.git"
resource "agate" do
url "https://pypi.python.org/packages/11/c1/519ef060fb62a089b9fda346d471a382a456ad23ccbe49885812d6cf45a9/agate-1.4.0.tar.gz"
sha256 "4436fca90177886e7747ce0a2dc293c3a49d4152baead4784c8da80861085eaf"
View todoman.rb
class Todoman < Formula
desc "A simple CalDAV-based todo manager"
homepage "https://todoman.readthedocs.io/"
url "https://github.com/pimutils/todoman/archive/v1.7.0.tar.gz"
sha256 "317b2d8a91a5820be907cdd3aa2624a89f75d2ef9926784d8dda1535ff5cf548"
depends_on :python3
resource "atomicwrites" do
url "https://pypi.python.org/packages/a1/e1/2d9bc76838e6e6667fde5814aa25d7feb93d6fa471bf6816daac2596e8b2/atomicwrites-1.1.5.tar.gz"
@rnkn
rnkn / For A Few Days More.fdx
Created Jul 3, 2016
Nicholl Fellowship sample script
View For A Few Days More.fdx
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<FinalDraft DocumentType="Script" Template="No" Version="1">
<Content>
<Paragraph Type="Action">
<Text>FADE IN:</Text>
</Paragraph>
<Paragraph Number="" Type="Scene Heading">
<Text>INT. DRISKILL HOTEL SEMINAR ROOM - DAY</Text>
</Paragraph>
<Paragraph Type="Action">
View loren-ipsum.txt
Aut enim fugit vero dolor tenetur doloremque in. Maiores quo ipsum repellat quis rerum est. Porro quia et illum molestias laboriosam. Nihil sunt atque sit soluta aspernatur quae. Aut quas laboriosam quis. Possimus consequatur aliquam nihil provident repellat doloremque minima blanditiis. Laboriosam ad dicta et ut maxime inventore aut sed. Voluptatem autem aut aut et veritatis sint dolorem dicta. Vel maiores consectetur dolores voluptates accusamus neque soluta. Quos et et dolores. Tempora tenetur dolorem laboriosam sed est dolorum ut occaecati. Voluptatum deserunt assumenda reprehenderit laudantium est repudiandae exercitationem. Quaerat illum iste quidem dolores adipisci. Id quidem sed quasi placeat eligendi eius aut sit. Cupiditate ullam et dolore et esse fugiat sint. Et debitis at vel praesentium ducimus ea. Consequuntur voluptatum at sit officia qui. Officia ut repellendus ex repellat corporis qui deleniti. At tempore at mollitia tenetur qui et officia. Et accusantium minima sit numquam a cumque aperiam e
You can’t perform that action at this time.