Skip to content

Instantly share code, notes, and snippets.

@rcmdnk
rcmdnk / asterisk.md
Last active November 30, 2018 07:42

asterisk escape test:

hoge

*hoge*

*hoge*

*hoge*

#Include %A_LineFile%\..\vim.ahk
Return
#if
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
#!/bin/bash
select command in "Hello World" "calculate 1+1" exit;do
if [ "$command" = "exit" ];then
exit
elif [ "$command" = "Hello World" ];then
echo $command
elif [ "$command" = "calculate 1+1" ];then
echo $((1+1))
fi
done
@rcmdnk
rcmdnk / cVimrc
Last active January 30, 2018 12:37
settings for cVim (obsolete version, new version is: https://gist.github.com/rcmdnk/6f9c3c0f8043391317e1a9cc3e0cafcb)
" This is old settings, new one is following url:
" https://gist.github.com/rcmdnk/6f9c3c0f8043391317e1a9cc3e0cafcb
"Settings
"set nohud
"set autohidecursor
"set noinsertmappings
set smoothscroll
set autoupdategist
{
"title": "numlock",
"rules": [
{
"description": "numlock: X -> FX",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape"
{
"title": "Switch key",
"rules": [
{
"description": "F12 switch",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f12"
@rcmdnk
rcmdnk / sticky.json
Last active September 1, 2017 04:21
Sticky shift by semicolon example for Karabiner-Elements
{
"title": "sticky",
"rules": [
{
"description": "sticky shift - shift modifier",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "semicolon"
#!/usr/bin/env bash
. sentaku -n
SENTAKU_FILE_CONTNT_LINE=10
_sf_file_content () {
if [ $_s_file_content -eq 0 ];then
return
fi
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1506,8 +1506,24 @@
{
if (curr->w_stringp >= curr->w_string + MAXSTR - 1)
curr->w_state = LIT;
+# ifdef UTF8
+ else if (c < 0x80)
+ *(curr->w_stringp)++ = c;
+ else if (c < 0x800)
@rcmdnk
rcmdnk / screen-utf8-osc.diff
Last active February 17, 2017 22:34
patch for screen 4.5.0
diff --git a/src/ansi.c b/src/ansi.c
index d88e153..fc42a0a 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1493,8 +1493,24 @@ int c;
{
if (curr->w_stringp >= curr->w_string + MAXSTR - 1)
curr->w_state = LIT;
+# ifdef UTF8
+ else if (c < 0x80)