Skip to content

Instantly share code, notes, and snippets.

@dmgerman
dmgerman / directory-files-recursive.el
Last active May 1, 2022 09:55
Recursively list files in a given directory
;;;
;;; Recursively list files in a given directory
;;;
;;; Author: daniel m german dmg at uvic dot ca
;;; Copyright: daniel m german
;;; License: Same as Emacs
;;;
(defun directory-files-recursive (directory match maxdepth ignore)
"List files in DIRECTORY and in its sub-directories.
Return files that match the regular expression MATCH but ignore
@dmgerman
dmgerman / keylimeSorbet.org
Last active August 29, 2015 14:05
Keylime sorbet

Keylime sorbet

1 unit of water 1 unit of soda water 1 unit of keylime juice. Keylime has a distinctive flavour. 100% keylime has a nice, strong taste, but requires lots of limes. My suggestion: use a combination of both regular limes and keylimes. 1.5 units of sugar 0.1 g of Xanthan gum per 100 g of total of mixture (sum of waters and juice)

Make syrup

@dmgerman
dmgerman / Coconut milk whipped cream
Last active August 29, 2015 14:08
CoconutMilkWhippedCream.org
- 1 14 ounce can of Thai Kitchen full fat, unsweetened coconut milk
- 2 tablespoons coconut oil, gently melted
- 1 ½ teaspoons of high-quality vanilla extract (gluten-free, if needed)
- ¼ cup of pure maple syrup (or sweetener of choice)
** Instructions
Like whipping cream (in the syphon).
@dmgerman
dmgerman / tunaPotatoSalad
Last active August 29, 2015 14:19
potato salad from la Gitadina
from la Gitadina, madrid
Tuna
Japapeno
Olive oil
Boiled potatoes
Red pepper (adds colour)
Very simple but really good.
@dmgerman
dmgerman / madrid
Last active August 29, 2015 14:19
Restaurants in Madrid
- dstage
- club allard
- malacatin (cocido)
- La oreja de jaime
- la gitadina (the restaurant, not the bar, stupid :)
@dmgerman
dmgerman / SQL-set-operations.org
Last active August 29, 2015 14:21
CSC370: SQL set operations

Set operations in SQL

First create some tables

\d
@dmgerman
dmgerman / test.org
Last active August 29, 2015 14:21
test

This is a test

If $a2=b$ and \( b=2 \), then the solution must be either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].

When does it create a TOC

Never?

or whenever it feels like it

α

@dmgerman
dmgerman / mdnif.sql
Last active September 22, 2015 01:47
drop function if exists _final_mdnif(int[]) cascade;
CREATE OR REPLACE FUNCTION _final_mdnif(int[])
RETURNS numeric AS
$$
DECLARE
sum numeric;
i int;
j int;
N int;
K int;
@dmgerman
dmgerman / vimium-emacs.md
Created September 28, 2015 19:46
Emacs-Style Key Bindings for Vimium

My Vimium Key Bindings (Emacs-Style)

This is a full set of key bindings (as of Vimium v1.45); covering all Vimium functionality. I have tried to map all Vimium functionality to comparable Emacs functionality (whenever possible). In cases where there is no equivalent, those commands are prefixed by <c-g> (indicating <c-g>oogle Chrome; and because <c-g> does not conflict with other Emacs shortcuts at all).

Commented Shortcuts: There are a few Emacs-style shortcuts that are simply not possible in Vimium. All of my shortcuts (including those which were not possible; i.e. where I used a decent alternative) have been commented below. This should help to clarify my rationale.

_Compatibility: All of these shortcuts were tested on Mac OS X (Mavericks). Please note that all of my shortcuts operate under the assumption that your Emacs Meta key is the Alt/Option key. This really was my only choice, because the key is already used in Chrome for shortcuts that c

# Copyright (C) 2013 The Debsources developers <info@sources.debian.net>.
# See the AUTHORS file at the top-level directory of this distribution and at
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD
#
# This file is part of Debsources. Debsources is free software: you can
# redistribute it and/or modify it under the terms of the GNU Affero General
# Public License as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version. For more information
# see the COPYING file at the top-level directory of this distribution and at
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=COPYING;hb=HEAD