Skip to content

Instantly share code, notes, and snippets.

View nicferrier's full-sized avatar

Nic Ferrier nicferrier

View GitHub Profile
(defun motionless-mark ()
"Do commands until a command.
Remember point and then read a key to end a sequence of commands.
The sequence is read (until you enter the key that is being matched
as the end marker) and executed and then, when the end command is
matched, point is moved back to the remembered location and
the end command is executed.
This can be useful for things like slurp."
@nicferrier
nicferrier / app.js
Created May 4, 2015 22:35
nic's presentation stuff
/*
simple little javascript to make org-mode presentations
export your org-mode to HTML with this at the end:
#+HTML: <script src="app.js"></script>
I also go to town and use a nice stylesheet.
Publish it with elnode with M-x elnode-make-js-server
@nicferrier
nicferrier / gist:49f34d6936814a457331
Created October 30, 2014 04:36
gpging the custom file
;; read the gpg agent file and set the env vars
(let ((gpg-agent-file (expand-file-name "~/.gpg-agent-info")))
(when (file-exists-p gpg-agent-file)
(message "import gpg agent file")
(mapc
(lambda (line)
(unless (equal line "")
(apply 'setenv (split-string line "="))))
(split-string
<div id="tip"><span id="tipheart">♥</span><span id="tipword">gittip</span></div>
commit c91974d5afc8216e4cc87435eaff3bf950074092 (HEAD, refs/remotes/nictest/build-dist, refs/remotes/nicsoundcloud/build-dist, refs/heads/build-dist)
Author: Nic Ferrier <nferrier@ferrier.me.uk>
Date: Wed Jul 31 17:12:35 2013 +0100
add a dist target to the Makefile to build a tarball.
Modified .pkgignore
diff --git a/.pkgignore b/.pkgignore
index 139b42b..be41456 100644
--- a/.pkgignore
(defun tapas-creole->bootstrap (struct)
"Transform STRUCT, a creole structure, into something bootstrapable.
HTML DIV elements are hacked into the structure wherever we find
an HR element. The HR elements are retained."
(let ((tx
(loop for e in struct
append
(if (eq (car e) 'hr)
(list '(hr) '(plugin-html . "</div><div class=\"section\">"))
(defmacro with-transient-file (file-name &rest code)
"Load FILE-NAME into a buffer and eval CODE.
Then dispose of the buffer.
File loading errors may be generated as by any call to visit a
file."
(declare (indent 1)
(debug (sexp &rest form)))
(let ((fvn (make-symbol "fv"))

the lean stack

what it is

nodejs

npm

mongodb

nginx

getting set up

installing node and mongo

set up a database

list data structures in emacs-lisp

lists

cover mapping separately

M-x package-install smartparens

`list’

`length’

`elt’

`cons’

`car’

`cdr’

@nicferrier
nicferrier / intro
Last active December 18, 2015 15:19 — forked from anonymous/intro
My friend has thought of a platform as a website which enables people wanting
to code on a project base. The creator of a project will outline it and start
work, where others may add lines of code for fun and for learning. We believe
it could bridge the gap between different competencies and also be a learning
arena. This is currently been started. will comence more on 21june.