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 'svg) | |
(defun svg-path (svg d &rest args) | |
"Create a path D in SVG." | |
(svg--append | |
svg | |
(dom-node 'path | |
`((d . ,d) | |
,@(svg--arguments svg args))))) |
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
(add-hook 'plain-TeX-mode-hook | |
(lambda () (setq TeX-command-default "ClutTeX"))) | |
(add-hook 'LaTeX-mode-hook | |
(lambda () (setq TeX-command-default "ClutTeX"))) | |
(add-to-list 'TeX-expand-list | |
'("%(cltxengine)" | |
(lambda () | |
(cond | |
((eq major-mode 'plain-tex-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
/* compile: cc tokenize.c -o tokenize -framework CoreFoundation */ | |
/* usage: ./tokenize 今日は晴れでいい気分 | |
/* 参考: https://stackoverflow.com/questions/6877659/how-to-get-an-array-of-sentences-using-cfstringtokenizer */ | |
#include <stdio.h> | |
#include <CoreFoundation/CoreFoundation.h> | |
int main(int argc, char *argv[]) | |
{ | |
if (argc != 2) { |
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
% upLaTeX 文書 | |
\documentclass[uplatex]{jsarticle} | |
\begin{document} | |
これは和文です(和文だよ)。 | |
\end{document} |
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
(defvar sushi-bar--old-format mode-line-format) | |
(defvar sushi-bar--conveyor-belt "") | |
(defvar sushi-bar--update-timer nil) | |
(defun sushi-bar--sushi-is-ready-p () | |
(eq (random 15) 1)) | |
(defun sushi-bar--conveyor-update () |
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 'cl-lib) | |
(defvar-local sushi-bar--conveyor-belt "") | |
(defvar sushi-bar--update-timer nil) | |
(defvar sushi-bar--buffers 0) | |
(defun sushi-bar--sushi-is-ready-p () | |
(eq (random 15) 1)) |
NewerOlder