This file contains 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
(defvar *html-void-tags* '(:area :base :br :col :embed :hr :img :input :link | |
:meta :param :source :track :wbr) | |
"String designators for self-closing/void tags. | |
https://html.spec.whatwg.org/multipage/syntax.html#void-elements") | |
(defvar *html-escapes* | |
'(#\& "&" | |
#\< "<" | |
#\> ">" | |
#\" """)) |
This file contains 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
(require 'org) | |
(setq-default indent-tabs-mode nil) | |
(setq org-display-inline-images t) | |
(setq org-redisplay-inline-images t) | |
(setq org-startup-with-inline-images "inlineimages") | |
(setq default-frame-alist | |
(append (list '(width . 72) '(height . 40)))) |
This file contains 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
:root{ | |
--prime-color:#464646; | |
--prime-bg:#fffceb; | |
--dark-bg:#2d2d2d; | |
--link-pink:#f012be; | |
--link-yellow:#ffb700; | |
--pink:rgba(255, 105, 180, 0.5); | |
--blue:rgba(48, 79, 254, 0.5); | |
--silver:#c1c1c1 | |
} |
This file contains 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
-- title: pomo | |
-- author: eli_oat | |
-- about: a very tiny pomodoro timer | |
defaults = { | |
pomoTime = 1500, -- length of a pomodoro in seconds | |
restTime = 600, -- length of a short rest in seconds | |
longRestTime = 900, -- length of a long rest in secconds | |
pomoCount = 0, -- tracks the number of elapsed pomodoros |
This file contains 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
watch(){ | |
cmd=$@ # Somehow interpolate $@ directly doesn't work. | |
$@ && tput bel && osascript -e "display notification \"Completed: $cmd\" with title \"╚(•⌂•)╝ Watch Alert\"" | |
} |
This file contains 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
Option Explicit | |
Public Sub SetActiveChartToCompletelyCoverARange() | |
Call ResizeAndRepositionChart( _ | |
Chart:=ActiveChart, _ | |
Range:=AskUserToInputARange()) | |
End Sub | |
Private Sub ResizeAndRepositionChart(ByRef Chart As Excel.Chart, ByRef Range As Excel.Range) | |
If Chart Is Nothing Then |
This file contains 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
mogrify -path DESTINATIONFOLDER -filter Triangle -define filter:support=2 -thumbnail 1200 -unsharp 0.25x0.08+8.3+0.045 -dither FloydSteinberg -type Grayscale -colors 2 -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB SOURCEFOLDER/* |
This file contains 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
"use strict"; | |
const dice = { | |
validate: (diceNotation) => { | |
const match = /^(\d+)?d(\d+)([+-]\d+)?$/.exec(diceNotation); | |
if (!match) { | |
throw "Invalid dice notation: " + diceNotation; | |
} else { | |
return match; |
This file contains 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
/* ============================= | |
================================ | |
/$$ /$$ /$$ | |
| $$ | $$| $$ | |
| $$ /$$$$$$$| $$$$$$$ | |
| $$ /$$__ $$| $$__ $$ | |
| $$| $$ | $$| $$ \ $$ | |
| $$| $$ | $$| $$ | $$ | |
| $$| $$$$$$$| $$$$$$$/ |
This file contains 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
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo "[${BRANCH}${STAT}] " | |
else | |
echo "" | |
fi |