Skip to content

Instantly share code, notes, and snippets.

@drvink
drvink / cornbread.md
Created Dec 15, 2018
best cornbread recipe
View cornbread.md

The cornbread recipe is easy; it's right off the Alber's Yellow Cornmeal box.

  • 1 cup Alber's yellow cornmeal
  • 1 cup all purpose flour
  • 1/4 cup granulated sugar
  • 1 Tbs. baking powder (Not soda)
  • 1 tsp. salt
  • 1 cup milk
  • 1/3 cup vegetable oil (like canola)
  • 1 large egg, slightly beaten
View keybase.md

Keybase proof

I hereby claim:

  • I am drvink on github.
  • I am mdl (https://keybase.io/mdl) on keybase.
  • I have a public key whose fingerprint is 28C7 91EF 1A28 F40D 7E94 CB80 0C26 AF37 93F3 2F5F

To claim this, I am signing this object:

@drvink
drvink / merlin-init.sh
Last active Sep 4, 2015 — forked from unhammer/merlin-init.sh
Create .merlin file for a project with all your ocamlfind packages and .opam sources in there
View merlin-init.sh
#!/bin/sh
if test -f .merlin; then
echo ".merlin already exists, bailing out ..." >&2
exit 1
else
# You could add your default EXT's and such to this list:
@drvink
drvink / .profile
Last active Sep 2, 2018
on nix: a language crash course for ml and haskell programmers
View .profile
# locale bug workaround
[ -e "$HOME/.nix-profile/lib/locale/locale-archive" ] \
&& export LOCALE_ARCHIVE="$HOME/.nix-profile/lib/locale/locale-archive"
# needed for GHC, Cabal, etc. to find stuff properly
# requires nix's patched ghc-paths package
if [ -e "$HOME/.nix-profile/bin/ghc" ]; then
export NIX_GHC="$HOME/.nix-profile/bin/ghc"
export NIX_GHCPKG="$HOME/.nix-profile/bin/ghc-pkg"
export NIX_GHC_DOCDIR="$HOME/.nix-profile/share/doc/ghc/html"
@drvink
drvink / old-haskell-indentation-mode.el
Last active May 14, 2018
haskell-indentation-mode delete behavior prior to merge of hi2.el
View old-haskell-indentation-mode.el
;;; old-haskell-indentation-mode.el --- pre-hi2 behaviors
;; Keywords: languages
;;; Commentary:
;; haskell-indentation-mode delete behavior prior to hi2 merge
;;; Code:
View gist:10834244d28f9e426db0
let inline retype (t : ^t) :^tm = (# "" t : ^tm #)
let inline (++) (w : ^W when ^W : (static member IsMeasureAbbrev : ^tm * ^t -> unit)) (t : ^t) = (# "" t : ^tm #)
open System
[<MeasureAnnotatedAbbreviation>]
type Guid<[<Measure>] 'Measure> = Guid
[<MeasureAnnotatedAbbreviation>]
type string<[<Measure>] 'Measure> = string
@drvink
drvink / FindExecutable.fs
Created Apr 20, 2015
F# inline MSBuild tasks via FSharp.Compiler.CodeDom
View FindExecutable.fs
namespace Example
open System
open System.IO
open System.Runtime.InteropServices
open System.Text
open Microsoft.Build.Framework
open Microsoft.Build.Utilities
module internal Externs =
You can’t perform that action at this time.