Skip to content

Instantly share code, notes, and snippets.

@basyura
basyura / FindCmdForm.xla.diff
Last active August 2, 2016 11:41
VimExcel - FindCmdForm
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
- If lang_mode = True Then
+ If lang_mode = "jp" Then
TextBox1.IMEMode = fmIMEModeHiragana
Else
Process: Vim [1643]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [528]
Responsible: Terminal [217]
User ID: 501
Date/Time: 2015-12-12 10:44:04.707 +0900
<Window x:Class="WPF_LayoutTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525"
Icon="BuildSolution_104.png"
>
<Window.Resources>
<ControlTemplate x:Key="ButtonTemplate" TargetType="Button">
<Border Name="ButtonTemplate_Border" Padding="2">
<ContentPresenter />
@basyura
basyura / cvimrc
Last active June 24, 2019 13:00
cvimrc
let locale = "jp"
let barposition = "bottom"
let hintcharacters = "asdfghjkl"
let searchlimit = 5
set noautofocus
set cncpcompletion
set nohud
unmap s u o yy yY yh yA y i v V x X
iunmap <C-o> <C-u> <C-y> <C-k>
map <C-d> scrollPageDown
@basyura
basyura / keyhack.config.py
Last active September 8, 2017 01:40
keyhack.config.py
import sys
import os
import datetime
import pyauto
from keyhac import *
def configure(keymap):
@basyura
basyura / gist:6cac94a9dbdf4c2b917916b279de0260
Last active September 16, 2019 04:25
VBA のコードを書き換えるやつ
' 事前準備
' https://hake.hatenablog.com/entry/20170812/p1
' 更新用マクロを動作させるExcelで以下の設定を行う
' ファイル
' →オプション
' →セキュリティセンター
' →セキュリティセンターの設定
' →マクロの設定
' →VBAプロジェクトオブジェクトモデルへのアクセスを信頼する。にチェック
inkdrop.commands.add(document.body, "mycmd:toggle-distraction-free", () => {
const sidebar = document.querySelector(".sidebar-layout");
const notelist = document.querySelector(".note-list-bar-layout");
// toggle to min header
if (sidebar != null || notelist != null) {
if (sidebar != null) {
inkdrop.commands.dispatch(document.body, "view:toggle-distraction-free");
} else if (notelist != null) {
inkdrop.commands.dispatch(document.body, "view:toggle-distraction-free");
@basyura
basyura / vim-like-in-chatgpt.js
Last active August 14, 2025 13:54
Vim-Like Keybindings in ChatGPT
// ==UserScript==
// @name ChatGPT
// @namespace http://basyura.org
// @version 0.1
// @description vim like in chatgpt
// @author basyura
// @match https://chat.openai.com/*
// @match https://chatgpt.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=chatgpt.com
// @grant none