Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jahfer on github.
  • I am jahfer (https://keybase.io/jahfer) on keybase.
  • I have a public key whose fingerprint is 43C9 6189 2FA5 E5BE B1E3 CDEB 65B1 4B90 1BD7 3365

To claim this, I am signing this object:

package main
import (
"encoding/json"
"io/ioutil"
"flag"
"strings"
"fmt"
)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAwHAzE57c+wKwpM/zZvuDFEYm9TQ+U7NcCwj2UHFupYWUEgf3sX/LU2H6VwbdJR0Xcgfr8GrrOiJha5gl+RkCEtfEYjcqw8uoO3plY+wAcJQwXeTYkP5Z21LDCE0E3cKcH9rRtA6J6i8QDrCNzi7rCSgm0kdubZfcJNZ/YICFPDGJEcfdElV1FNzABB85jDuvoVjP0vEPOZy3tG67YT9GcN8RfgkJmGCPRdgKHl7tYHxELANRlXf+7QawcosH9L7GoQOpi9nia5wYMCGV3NhGcwKdDmxWgLhmYD/smGOaEGh/Dt9i9DD9QMZ6gOF1/9OX5SrKzab2rYo6L+YBNs5V jahfer@github.com
@jahfer
jahfer / init.el
Created September 15, 2014 16:49
;; Package
;; Managing extensions for Emacs is simplified using =package= which
;; is built in to Emacs 24 and newer. To load downloaded packages we
;; need to initialize =package=.
(require 'package)
(setq package-enable-at-startup nil)
(package-initialize)
@jahfer
jahfer / init.el
Last active August 29, 2015 14:09
Emacs config
;; Package
;; Managing extensions for Emacs is simplified using =package= which
;; is built in to Emacs 24 and newer. To load downloaded packages we
;; need to initialize =package=.
(require 'package)
(setq package-enable-at-startup nil)
(package-initialize)
@jahfer
jahfer / generator-to-map.js
Last active August 29, 2015 14:14
Messing with ES6 Map + Generator
const ENDKEY = Symbol('endOfMap');
function* simpleGen() {
let counter = 0
while (counter++ < 3) {
yield [counter, true]
}
yield [ENDKEY, false]
}

Election 42 Notes

Child-care

  • NDP :: National $15/day daycare + keep Universal Child Care Benefit from Conservatives
  • Conservatives :: Universal Child Care Benefit (taxable)
  • Liberals :: Canada Child Benefit (non-taxable)

Senate

  • NDP :: Abolish
  • Conservatives :: No new appointments, let provinces deal with it
  • Liberals :: Reform
@jahfer
jahfer / gist:2690846
Created May 13, 2012 23:56
CSS: Image Replacement
.ir { border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }
@jahfer
jahfer / gist:2690856
Created May 13, 2012 23:59
JavaScript: Hints
/*
===========================================
JavaScript Hints & Tips
Compiled mainly from http://sharedfil.es/js-48hIfQE4XK.html
===========================================
// onReady
document.addEventListener("DOMContentLoaded", function() {
// code...
});
@jahfer
jahfer / gist:2690835
Created May 13, 2012 23:52
CSS: Media Queries
/* Desktop */
/* Mobile in portrait */
@media only screen and (max-width: 47.9375em) {
}
/* Mobile in Landscape */
@media only screen and (min-width: 30em) and (max-width: 47.9375em) {