Skip to content

Instantly share code, notes, and snippets.

View tsuu32's full-sized avatar

Masahiro Nakamura tsuu32

View GitHub Profile
tsuu32 / settings_iterm2_material_design.json
Created August 6, 2021 15:40
Windows Terminal color scheme ported from iTerm2 Material Design
"background": "#263238",
"black": "#546E7A",
"blue": "#40C4FF",
"brightBlack": "#B0BEC5",
"brightBlue": "#80D8FF",
"brightCyan": "#A7FDEB",
"brightGreen": "#B9F6CA",
"brightPurple": "#FF80AB",
"brightRed": "#FF8A80",
tsuu32 / gitb.json
Created August 6, 2021 15:34
Scoop App Manifest for gitb
"version": "2.4.0",
"description": "A command line tool for using Backlog’s git comfortably.",
"homepage": "",
"license": "MIT",
"architecture": {
"64bit": {
"url": "",
"hash": "ff21d5b7c2d7d38bf6067b63a2e6cde1dbe38dbdf0302f220f5354196a59c3c8",
"extract_dir": "gitb_2.4.0_windows_amd64"
;;; scsnowman-zrchristmas.el --- zrchristmas shape for scsnowman.el -*- lexical-binding: t -*-
;; Copyright (C) 2020 by Masahiro Nakamura
;; Author: Masahiro Nakamura <>
;; Version: 0.0.1
;;; Commentary:
;; A `zrchristmas' shape definition for scsnowman.el.
;;; w32-ime-mode.el --- Yes another initializer for W32-IME
;;; Commentary:
;; Add following code to your init file instead of (w32-ime-initialize):
;; (require 'w32-ime-mode)
;; (w32-ime-mode)
;;; Code:
(require 'ivy)
(require 'migemo)
(defun my/migemo-get-pattern-shyly (word)
(migemo-get-pattern word)))
(defun my/ivy--regex-migemo-pattern (word)
(require 'xwwp)
(defun my/xwwp-clear-page (&optional xwidget)
(let ((xwidget (or xwidget (xwidget-webkit-current-session))))
(xwwp-html-inject-style xwidget "__my_xwwp_clear_page_style" "body { display: none; }\\n")))
(defun my/xwwp-rotate-page (&optional xwidget)
(require 'jsonrpc)
(defclass jsonrpc-process-raw-connection (jsonrpc-connection)
:initarg :process :accessor jsonrpc--process
:documentation "Process object wrapped by the this connection.")
:accessor jsonrpc--on-shutdown
:initform #'ignore
:initarg :on-shutdown
// To execute it, run:
// `$ clang textview_sample.m -framework Cocoa && ./a.out`
#import <Cocoa/Cocoa.h>
int main() {
@autoreleasepool {
NSApplication* app = [NSApplication sharedApplication];
# 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
tsuu32 / scsnowman-scratch.el
Last active March 2, 2020 06:34
Display SVG-formatted scsnowman in Emacs.
(require 'svg)
(defun svg-path (svg d &rest args)
"Create a path D in SVG."
(dom-node 'path
`((d . ,d)
,@(svg--arguments svg args)))))