Skip to content

Instantly share code, notes, and snippets.

@cvalarida
cvalarida / dec-to-bin.emacs
Last active August 7, 2018 03:59
An Elisp attempt at a little engineering problem--converting a decimal number to binary.
(defun dec-to-bin (dec)
(interactive "nDecimal number to convert: ")
(setq debug-on-error t)
(let ((bin-string "")
(current-dec dec))
(while (/= 0 current-dec)
(setq bin-string (concat (number-to-string (% current-dec 2)) bin-string))
(setq current-dec (truncate (/ current-dec 2))))
(message "%d in binary is %s" dec bin-string)))
@cvalarida
cvalarida / workflow.md
Last active April 12, 2017 19:47
Workflow Procedures

Workflow Procedures

For lack of a better name, we'll call it that. For now.

Abstract

This document outlines the procedure in which work makes it from start to finish, merging into master. We'll be looking at it from a pretty high level and skimming over a lot as we go.

Assumptions