Skip to content

Instantly share code, notes, and snippets.

View jduhamel's full-sized avatar

Joe Duhamel jduhamel

View GitHub Profile
@doitian
doitian / my-folding.el
Created January 6, 2012 15:56
set up a comfortable emacs folding
(defvar fringe-face 'fringe)
(custom-set-variables
'(folding-font-lock-begin-mark 'fringe-face)
'(folding-font-lock-end-mark 'fringe-face))
(defface collapsed-face '((t (:background "#e0cf9f" :foreground "#5f5f5f"))) "Collapsed Overlay")
(defvar collapsed-face 'collapsed-face)
(require 'folding)
(setq folding-check-folded-file-function 'iy-folding-check-folded)
(folding-mode-add-find-file-hook)
@schmichael
schmichael / gist:7379338
Created November 8, 2013 23:32
Transparently compress and upload a file in golang
package main
import (
"bufio"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"