This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; https://old.reddit.com/r/emacs/comments/csut1x/weekly_tipstricketc_thread/ey1xzbf/?context=3 | |
;; https://debbugs.gnu.org/25122#60 | |
;; The following times obtained after evaluating the (mapc #'require | |
;; ...) form at the end. | |
(benchmark 1 '(pp-to-string load-history)) | |
"Elapsed time: 6.311048s (1.167418s in 7 GCs)" | |
(benchmark 1 '(prin1-to-string load-history)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -n "$INSIDE_EMACS" ]; then | |
# Don't change TERM for Emacs ansi-term. | |
: | |
elif [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM='gnome-256color'; | |
elif infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM='xterm-256color'; | |
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; emacs -Q -l bug-21824.el -f 21824-trigger | |
(defun 21824-mod-overlay (overlay afterp beg end &optional len) | |
(if (eq (current-buffer) (overlay-buffer overlay)) | |
(message "21842-mod-overlay(%s %s %s %s %s), buf = %s" | |
overlay afterp beg end len (current-buffer)) | |
(setq 21842-repeat-message) | |
(debug nil overlay afterp beg end len (current-buffer)))) | |
(defun 21824-trigger () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; .loaddefs.el --- automatically extracted autoloads | |
;; | |
;;; Code: | |
;;;### (autoloads (el-get-checksum el-get-make-recipes el-get-cd | |
;;;;;; el-get-self-update el-get-update-packages-of-type el-get-update-all | |
;;;;;; el-get-version) "el-get/el-get" "el-get/el-get.el" (21156 | |
;;;;;; 41015 451003 542000)) | |
;;; Generated autoloads from el-get/el-get.el |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
install_pkgs() { | |
sudo apt-get install "$@" | |
} | |
install_go_engine() { | |
local prefix=http://googleappengine.googlecode.com/files/go_appengine_sdk | |
local os=linux | |
local -A arches=([x86_64]=amd64 [i386]=386) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _XOPEN_SOURCE 500 /* strdup() */ | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ahocorasick.h> | |
enum { MAX_LINE_LEN = 4096 }; |