This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 \") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
usage="Usage: ssweeper -c | |
\nWARNING: this will remove all files in /usr/home/* that do not match | |
\ntypes directory, empty or text" | |
if [[ $1 = "-c" ]] | |
then | |
find /usr/home/* | while read file | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
usage="Usage: addfriend friend1 [friend2 ...]" | |
friendsdir=$HOME/public/friends | |
if [ ! -d $friendsdir ] | |
then | |
echo "Making friends directory..." | |
mkdir -pv $friendsdir | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun fizzbuzz () | |
"For numbers 1 through 100: if the number is divisible by 3 and | |
5 print FizzBuzz; if the number is divisible by 3 print Fizz; if | |
the number is divisible by 5 print Buzz; else, print the number." | |
(interactive) | |
(let ((n 1)) | |
(while (<= n 100) | |
(cond ((and (= (% n 3) 0) | |
(= (% n 5) 0)) | |
(insert "FizzBuzz" ?\n)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# Scaffold creates a project directory structure like... | |
# ~ | |
# |-- Desktop | |
# |-- Developer | |
# | `-- project | |
# |-- Documents | |
# | `-- project | |
# |-- Downloads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INT. DR. MOROSE'S LAIR - DAY | |
DR. MOROSE | |
Welcome to my lair. | |
[[ reference: foo.fountain ]] | |
I/E. DR. MOROSE'S MOROSE MOBILE - MOVING | |
AGENT AGNUS | |
I'll get you Morose! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if paginator.total_pages > 1 %} | |
<p> | |
{% if paginator.previous_page == 1 %} | |
<a href="{{ '/blog/' | prepend: site.baseurl }}">previous</a> | |
{% elsif paginator.previous_page %} | |
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">previous</a> | |
{% else %} | |
previous | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun -nnrss-fetch-async () | |
"Run a dynamic asynchronous shell command to fetch RSS feeds. | |
Creates a dynamic shell command to fetch RSS feeds in | |
`nnrss-group-alist' and runs using `async-shell-command'." | |
(interactive) | |
(or nnrss-use-local | |
(setq nnrss-use-local t)) | |
(let* ((rssdir (expand-file-name nnrss-directory)) | |
list | |
(fetch-str |
NewerOlder