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)) |
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
% 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
/* 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
(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
From dacd2d63122622ddb967ad8bca46c158bcbfb85c Mon Sep 17 00:00:00 2001 | |
From: Masahiro Nakamura <tsuucat@icloud.com> | |
Date: Fri, 14 Feb 2020 04:29:34 +0900 | |
Subject: [PATCH] marked text face & Isearch patch | |
--- | |
lisp/isearch.el | 3 +-- | |
lisp/term/ns-win.el | 43 ++++++++++++++++++++++++++++++++++--------- | |
src/keyboard.c | 7 ++++--- | |
src/nsterm.m | 21 +++++++++++++++++++++ |
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
#!/bin/bash | |
# Comment out to avoid an error on macOS | |
# set -e | |
DIRNAME=tl-`date +%Y_%m_%d_%H_%M_%S` | |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then | |
export PATH=$PATH:$HOME/texlive/bin/x86_64-darwin | |
else |
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://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/TextUILayer/Tasks/CreateTextViewProg.html | |
// To execute it, run: | |
// `$ clang textview_sample.m -framework Cocoa && ./a.out` | |
#import <Cocoa/Cocoa.h> | |
int main() { | |
@autoreleasepool { | |
NSApplication* app = [NSApplication sharedApplication]; |
OlderNewer