start new:
tmux
start new with session name:
tmux new -s myname
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
package gziphandler | |
import ( | |
"compress/gzip" | |
"log" | |
"net/http" | |
"strings" | |
"sync" | |
) |
package main | |
import ( | |
"fmt" | |
"github.com/gorilla/mux" | |
"github.com/gorilla/securecookie" | |
"net/http" | |
) | |
// cookie handling |
{ | |
"libs": [ | |
"browser", | |
"underscore", | |
"jquery" | |
], | |
"plugins": { | |
"node": {} | |
} | |
} |
;;; Commentary | |
;; | |
;; Allows for more compact anonymous functions. The following | |
;; examples demonstrate the usage. | |
;; | |
;; ;; partial application with `curry' | |
;; (mapcar (» #'+ 2) '(1 2 3 4)) ; => (3 4 5 6) | |
;; | |
;; ;; alternate order of arguments with `rcurry' | |
;; (mapcar (« #'- 1) '(1 2 3 4)) ; => (0 1 2 3) |
# | |
# STL GDB evaluators/views/utilities - 1.03 | |
# | |
# The new GDB commands: | |
# are entirely non instrumental | |
# do not depend on any "inline"(s) - e.g. size(), [], etc | |
# are extremely tolerant to debugger settings | |
# | |
# This file should be "included" in .gdbinit as following: | |
# source stl-views.gdb or just paste it into your .gdbinit file |
;; This hack fixes indentation for C++11's "enum class" in Emacs. | |
;; http://stackoverflow.com/questions/6497374/emacs-cc-mode-indentation-problem-with-c0x-enum-class/6550361#6550361 | |
(defun inside-class-enum-p (pos) | |
"Checks if POS is within the braces of a C++ \"enum class\"." | |
(ignore-errors | |
(save-excursion | |
(goto-char pos) | |
(up-list -1) | |
(backward-sexp 1) |