Skip to content

Instantly share code, notes, and snippets.

View naduma's full-sized avatar

Naruki Azuma naduma

View GitHub Profile
@naduma
naduma / memoroux.el
Created February 11, 2020 05:54
memoroux API利用 elisp
; memorux.el
(require 'json)
(defcustom memoroux-url nil
"memoroux url (e.g. https://memoroux.herokuapp.com)"
:type 'string :group 'memoroux)
(defcustom memoroux-username nil
"memoroux basic auth username"
:type 'string :group 'memoroux)
@naduma
naduma / vbnet-mode.el
Created February 11, 2020 02:07
nox patch
;;; vbnet-mode.el --- A mode for editing Visual Basic .NET programs.
;;
;; Authors : Fred White <fwhite@alum.mit.edu>
;; : Dave Love <d.love@dl.ac.uk>
;; : Kevin Whitefoot <kevin.whitefoot@nopow.abb.no>
;; : T.K.Anderson
;; : Dino Chiesa <dpchiesa@hotmail.com>
;; Created : April 1996
;; Modified : May 2011
;; Version : 1.6
;;; -*- mode: emacs-lisp ; coding: utf-8 -*-;;;
;;; basic
;; language
(set-language-environment 'Japanese)
;; coding
(set-terminal-coding-system 'utf-8)
(setq file-name-coding-system 'utf-8)
(set-clipboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
@naduma
naduma / transform.patch
Created March 14, 2016 23:34
golang.org/x/text/width: patch sample
diff --git width/transform.go width/transform.go
index 8dd731c..ec8be34 100644
--- width/transform.go
+++ width/transform.go
@@ -22,7 +22,7 @@ func (foldTransform) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err
if d := len(dst) - nDst; d < end-start {
end = nSrc + d
}
- for nSrc++; nSrc < end && src[nSrc] < utf8.RuneSelf; nSrc++ {
+ for ; nSrc < end && src[nSrc] < utf8.RuneSelf; nSrc++ {