Skip to content

Instantly share code, notes, and snippets.

View redguardtoo's full-sized avatar
⛸️
Focusing

Chen Bin redguardtoo

⛸️
Focusing
View GitHub Profile
@icholy
icholy / gobreak.sh
Last active December 16, 2015 19:18
Shell script to simplify setting GDB breakpoints
# Demo http://ascii.io/a/3019
# build
gdbb () {
# build with debug flags
go build -gcflags "-N -l" -o out
# make sure the build didn't fail
if [ $? != 0 ]; then return; fi
@jplindstrom
jplindstrom / evil_defun_textobject.el
Created September 13, 2012 13:41
A "defun" Emacs Evil text object
;; Define a "defun" Emacs Evil text object
(defun jpl-line-before-end-of-defun (&optional arg)
(interactive)
(end-of-defun arg)
(previous-line))
(defun jpl-line-after-beginning-of-defun (&optional arg)
(interactive)
(beginning-of-defun arg)
(next-line))