Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul W. Rankin rnkn

View GitHub Profile
View userChrome.css
#titlebar {
-moz-box-ordinal-group: 2;
}
#TabsToolbar .toolbar-items {
background: linear-gradient(rgb(215,215,215), rgb(205,205,205));
}
#PlacesToolbar .toolbarbutton-icon {
visibility: collapse;
View fountain.css
.screenplay {
font-family: Courier Prime;
font-size: 12pt;
line-height: 1;
max-width: 6in;
margin: 1em auto;
-webkit-text-size-adjust: none;
}
.screenplay h1, h2, h3, h4, h5, h6 {
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 \")
@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">
@rnkn
rnkn / ns-keys.el
Last active Jun 30, 2016
macOS command keys for Emacs
View ns-keys.el
(when ns-window-system
(setq ns-command-modifier 'hyper)
(let ((cmd (cond ((eq ns-command-modifier 'hyper) "H-")
((eq ns-command-modifier 'super) "s-"))))
(global-set-key (kbd (concat cmd "<left>")) 'beginning-of-line)
(global-set-key (kbd (concat cmd "<right>")) 'end-of-line)
(global-set-key (kbd (concat cmd "<up>")) 'beginning-of-buffer)
(global-set-key (kbd (concat cmd "<down>")) 'end-of-buffer)
(global-set-key (kbd (concat cmd "o")) 'find-file-existing)
(global-set-key (kbd (concat cmd "n")) 'make-frame)
You can’t perform that action at this time.