Skip to content

Instantly share code, notes, and snippets.

View dstcruz's full-sized avatar

Daniel Santa Cruz dstcruz

  • S&P Global
  • Denver, CO
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dstcruz on github.
  • I am dstcruz (https://keybase.io/dstcruz) on keybase.
  • I have a public key whose fingerprint is CA82 9C6D 8251 FEC4 8AA6 9E5F 7027 5898 2A82 9428

To claim this, I am signing this object:

;; dansan's basic emacs configuration
;; for emacs 24
(setq default-mayor-mode 'text-mode)
(setq make-backup-files nil)
(setq auto-save-default nil)
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(setq scroll-set 1 scroll-conservatively 10000)
@dstcruz
dstcruz / Hack.hs
Created March 29, 2013 18:40
First draft of an assembler for the Hack machine ("From NAND to Tetris" fame). This does not have any good error handling, and, as you can see, there are no comments.
{-
Known to work with:
The Glorious Glasgow Haskell Compilation System, version 7.4.2
Extra library dependency:
Safe
To compile:
ghc -o HackAssembler Hack.hs
@dstcruz
dstcruz / gist:4047355
Created November 9, 2012 18:26
Nice to use with haskell :)
(defun my-align-single-equals ()
"Align on a single equals sign (with a space either side)."
(interactive)
(align-regexp
(region-beginning) (region-end)
"\\(\\s-*\\) = " 1 0 nil))
(global-set-key (kbd "C-c a") 'my-align-single-equals)