Skip to content

Instantly share code, notes, and snippets.

Avatar

Jahfer Husain jahfer

View GitHub Profile
View keybase.md

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:

View dropbox2gifwit.go
package main
import (
"encoding/json"
"io/ioutil"
"flag"
"strings"
"fmt"
)
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAwHAzE57c+wKwpM/zZvuDFEYm9TQ+U7NcCwj2UHFupYWUEgf3sX/LU2H6VwbdJR0Xcgfr8GrrOiJha5gl+RkCEtfEYjcqw8uoO3plY+wAcJQwXeTYkP5Z21LDCE0E3cKcH9rRtA6J6i8QDrCNzi7rCSgm0kdubZfcJNZ/YICFPDGJEcfdElV1FNzABB85jDuvoVjP0vEPOZy3tG67YT9GcN8RfgkJmGCPRdgKHl7tYHxELANRlXf+7QawcosH9L7GoQOpi9nia5wYMCGV3NhGcwKdDmxWgLhmYD/smGOaEGh/Dt9i9DD9QMZ6gOF1/9OX5SrKzab2rYo6L+YBNs5V jahfer@github.com
View init.el
;; 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 Aug 29, 2015
Emacs config
View init.el
;; 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 Aug 29, 2015
Messing with ES6 Map + Generator
View generator-to-map.js
const ENDKEY = Symbol('endOfMap');
function* simpleGen() {
let counter = 0
while (counter++ < 3) {
yield [counter, true]
}
yield [ENDKEY, false]
}
View election_notes.md

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
CSS: Image Replacement
View gist:2690846
.ir { border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }
@jahfer
jahfer / gist:2690856
Created May 13, 2012
JavaScript: Hints
View gist:2690856
/*
===========================================
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
CSS: Media Queries
View gist:2690835
/* 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) {
You can’t perform that action at this time.