Skip to content

Instantly share code, notes, and snippets.

@syohex
syohex / output
Created February 10, 2014 03:21
Show IPv6 Address sample in C
% ./a.out
1234:5678:abcd:8765:4321:fedc:aaaa:bbbb
;;; coffee-mode.el --- Major mode to edit CoffeeScript files in Emacs
;; Copyright (C) 2010 Chris Wanstrath
;; Version: 0.5.0
;; Keywords: CoffeeScript major mode
;; Author: Chris Wanstrath <chris@ozmm.org>
;; URL: http://github.com/defunkt/coffee-mode
;; Package-Requires: ((emacs "24.1"))
@syohex
syohex / failed-md2inao.log
Created March 3, 2014 09:13
Fail log of Text::Md2Inao
% make test
PERL_DL_NONLAZY=1 /home/syohei/.plenv/versions/5.18.1/bin/perl5.18.1 "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00_compile.t ................. ok
t/01_api.t ..................... ok
t/02_sample_file.t ............. Cannot decode string with wide characters at /home/syohei/.plenv/versions/5.18.1/lib/perl5/site_perl/5.18.1/x86_64-linux-thread-multi/Encode.pm line 215.
t/02_sample_file.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/04_img.t ..................... ok
t/05_basic_synatx.t ............ 1/26 Cannot decode string with wide characters at /home/syohei/.plenv/versions/5.18.1/lib/perl5/site_perl/5.18.1/x86_64-linux-thread-multi/Encode.pm line 215, <DATA> line 1.
# Looks like you planned 26 tests but ran 20.
@syohex
syohex / migemo-newline.patch
Created March 5, 2014 08:49
support newline
diff --git a/migemo.el b/migemo.el
index cd875a2..73b1362 100644
--- a/migemo.el
+++ b/migemo.el
@@ -257,6 +257,8 @@
(accept-process-output migemo-process
0 migemo-accept-process-output-timeout-msec))
(setq pattern (buffer-substring (point-min) (1- (point-max)))))
+ (setq pattern (replace-regexp-in-string "\\\\s-\\*" "\\\\(?:\\\\s-\\\\|
+\\\\)*" pattern))
#!/usr/bin/env perl
use strict;
use warnings;
use File::Find;
use File::Spec;
my %modules = ();
my %inc = map { $_ => $_ } @INC;
@syohex
syohex / README.rst
Last active August 29, 2015 13:57
Fix rst links
@syohex
syohex / test.rst
Created March 19, 2014 08:54
Highlighting code test for restructured text
@syohex
syohex / test.rst
Created March 20, 2014 01:07
highlighting code block
@syohex
syohex / highlight-tagname.patch
Created March 26, 2014 12:28
highlight tagname
diff --git a/helm-gtags.el b/helm-gtags.el
index b5c6ac6..ce89c5f 100644
--- a/helm-gtags.el
+++ b/helm-gtags.el
@@ -147,6 +147,7 @@ Always update if value of this variable is nil."
(defvar helm-gtags--current-position nil)
(defvar helm-gtags--real-tag-location nil)
(defvar helm-gtags--remote-p nil)
+(defvar helm-gtags--last-input nil)
@syohex
syohex / helm-gtags.el
Created March 27, 2014 12:28
helm-gtags #43
;;; helm-gtags.el --- GNU GLOBAL helm interface -*- lexical-binding: t; -*-
;; Copyright (C) 2014 by Syohei YOSHIDA
;; Author: Syohei YOSHIDA <syohex@gmail.com>
;; URL: https://github.com/syohex/emacs-helm-gtags
;; Version: 1.2.5
;; Package-Requires: ((helm "1.5.6") (cl-lib "0.5"))
;; This program is free software; you can redistribute it and/or modify