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
a | |
;; 1. Eval this | |
(progn | |
(require 'fringe-helper) | |
(defun add-single-marker (pos) | |
(fringe-helper-insert-region | |
pos pos | |
(fringe-lib-load fringe-lib-zig-zag) |
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
// g++ -o leak leak.cc -Iharfbuzz/src -Ifreetype/include -lharfbuzz -lfreetype | |
#include "hb-ft.h" | |
int main(int argc, char** argv) { | |
FT_Library library; | |
FT_Init_FreeType(&library); | |
FT_Face face; | |
FT_New_Face(library, "Chunkfive.otf", 0, &face); | |
FT_Set_Pixel_Sizes(face, 0, 40); |
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
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-on-save-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, saving the buffer triggers Firefox | |
;; to reload its current page. | |
(define-minor-mode moz-reload-on-save-mode | |
"Moz Reload On Save Minor Mode" |
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
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-on-save-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, saving the buffer triggers Firefox | |
;; to reload its current page. | |
(define-minor-mode moz-reload-on-save-mode | |
"Moz Reload Minor Mode" |
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
;; Installation: | |
;; Add the following to your emacs setup: | |
;; (add-to-list 'load-path "<directory-of-this-file>") | |
;; (add-hook 'inf-ruby-mode-hook (lambda () (require 'inf-ruby-company))) | |
(require 'company) | |
(defun inf-ruby-company-backend (command &optional arg &rest ignored) | |
(case command | |
('prefix |
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
/* vim: ts=4 noet ai : | |
$Id: $ | |
Link Original Image - (c) 2005-2009 Johannes la Poutre | |
Greasemonkey User Script; looks for thumbnail images from Flickr. | |
Links these images to their original uploaded (full size) | |
versions. This also works for any page where thumbnails are | |
displayed directly from the Flickr servers. |
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
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, every change in the buffer triggers Firefox | |
;; to reload its current page. | |
(defvar moz-reload-buffers '()) |
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
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, every change in the buffer triggers Firefox | |
;; to reload its current page. | |
(define-minor-mode moz-reload-mode | |
"Moz Reload Minor Mode" |
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
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, every change in the buffer triggers Firefox | |
;; to reload its current page. | |
(defvar moz-reload-buffers '()) |
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
;; Usage: Evaluate file, then run (toggle-swank-clojure-reroute). | |
(defvar swank-clojure-cmd-reroute-code (replace-regexp-in-string "\n+" ";" | |
"swank_clojure_cmd = ARGV.dup | |
ARGV.clear | |
swank_init_forms = [] | |
loop { swank_init_forms << (form = gets); break if form.include? 'start-server' } | |
eval_string = swank_init_forms.map(&:chomp).compact.join |