# | from | to |
---|---|---|
1 | 右space | 無変換 |
2 | 無変換 | WIN |
3 | WIN | App |
4 | Caps | L_CTRL |
5 | fn + Caps | L_CTRL |
6 | FN | L_CTRL |
This file contains hidden or 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
function assert(expected, actual) { | |
const at = (new Error()).stack.split('\n')[2].trim() | |
if (expected !== actual) { | |
console.error('error', {expected, actual}, at) | |
return false; | |
} | |
console.log('OK', {expected, actual}, at) | |
return true; |
This file contains hidden or 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 https://quinncasey.com/hugo-wikilink-support/ | |
*/}} | |
{{ $wikiregexWithText := "\\[\\[([^\\]\\|\\r\\n]+?)\\|([^\\]\\|\\r\\n]+?)\\]\\]" }} | |
{{ $wikiregex := "\\[\\[([^\\]\\|\\r\\n]+?)\\]\\]" }} | |
{{ $page := .Page }} | |
{{ $pageContent := .Content }} | |
{{ range ($wikilinks := .Content | findRE $wikiregex) }} |
This file contains hidden or 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
modmap: | |
- name: modifiers | |
remap: | |
CapsLock: RightCtrl | |
Muhenkan: | |
held: LeftCtrl | |
alone: Muhenkan | |
keymap: | |
- name: Terminal |
This file contains hidden or 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
<?php | |
$subjects = [ | |
'zenkaku', | |
'hankaku', | |
'あいうえお' | |
]; | |
foreach ($subjects as $subject) { | |
preg_match('/^[a-z]+$/', $subject, $match); | |
var_dump($match); |
This file contains hidden or 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
{ | |
"title": "Japanese JIS to US Keyboard: Remap Symbol Keys", | |
"maintainers": [ | |
"halfwhole" | |
], | |
"rules": [ | |
{ | |
"description": "Japanese JIS to US Keyboard: Remap Symbol Keys", | |
"manipulators": [ | |
{ |
This file contains hidden or 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
{ | |
"title": "Cmd-Eisuu-Kana", | |
"rules": [ | |
{ | |
"description": "cmd to eisuu and kana", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_command", |
This file contains hidden or 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
{ | |
"title": "for Kensington Trackball", | |
"rules": [ | |
{ | |
"description": "L_btn + R_btn to Button 2", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"simultaneous": [ |
This file contains hidden or 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
# FB / twitterクローラーを許可する | |
Satisfy Any | |
Order Allow,deny | |
SetEnvIf User-Agent "^facebookexternalhit.*$" sns_crawler | |
SetEnvIf User-Agent "^.*Twitterbot.*$" sns_crawler | |
Allow from env=sns_crawler |
This file contains hidden or 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
{ | |
"title": "browser", | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Safari", | |
"^com\\.google\\.Chrome", | |
"^com\\.vivaldi\\.Vivaldi" | |
] |
NewerOlder