Skip to content

Instantly share code, notes, and snippets.

View ctindall's full-sized avatar

Cameron Tindall ctindall

View GitHub Profile
(package-initialize)
(defun top-of-buffer ()
"'beginning-of-buffer' sets a mark. This doesn't, just like vi's 'gg' command."
(interactive)
(goto-char (point-min)))
(defun bottom-of-buffer ()
"like 'top-of-buffer' but takes you to the bottom"
(interactive)
@ctindall
ctindall / org2graph.sh
Created March 26, 2018 18:49
convert an org-mode file with a table of data into a handsome graph
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function trampcp {
src="$1"
dest="$2"
emacs -q \
--batch \
--eval "(copy-file \"$src\" \"$dest\" t)"
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function trampcp {
src="$1"
dest="$2"
emacs -q \
--batch \
--eval "(copy-file \"$src\" \"$dest\" t)"
#!/bin/sh
set -e
cd "$(git rev-parse --show-cdup)"
# Find all the objects that are in packs:
if [ "$(ls -A .git/objects/pack)" ]
then
We the People of the United States, in Order to form a more perfect Union,
establish Justice, insure domestic Tranquility, provide for the common
defence, promote the general Welfare, and secure the Blessings of Liberty to
ourselves and our Posterity, do ordain and establish this Constitution for the
United States of America.
Article 1.
Section 1
All legislative Powers herein granted shall be vested in a Congress of the