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
puts "==== hifumi ====" | |
kbd = Keyboard.new | |
kbd.init_pins( | |
[ 4, 5 ], # row pin number = GPIO4, GPIO5 | |
[ 29, 28, 27 ] # col pin number = GPIO29 - 27 | |
) | |
kbd.add_layer :default, %i[ |
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
puts "=== Plancky ===" | |
kbd = Keyboard.new | |
kbd.init_pins( | |
[ 21, 23, 20, 22 ], | |
[ 26, 27, 28, 29, 9, 8, 7, 6, 5, 4, 3, 2 ] | |
) | |
kbd.add_layer :default, %i[ |
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
puts "=== GRIN Type-R ===" | |
kbd = Keyboard.new | |
kbd.init_pins( | |
[ 20, 19, 18, 17, 16 ], | |
[ 8, 7, 6, 2, 3, 4, 5, 10, 15, 14, 13, 12, 11, 9, 21 ] | |
) | |
kbd.add_layer :default, %i[ |
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
# Initialize a Keyboard | |
kbd = Keyboard.new | |
# Initialize GPIO assign | |
kbd.init_pins( | |
#[ 8, 9, 10, 11, 12 ], # row0, row1,... respectively | |
#[ 2, 3, 4, 5, 6, 7 ] # col0, col1,... respectively | |
# If you put USB port on the right side, use below instead | |
[ 6, 7, 8], | |
[ 2, 3, 4] |
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/sh | |
TMPFILE=/tmp/`basename $0`.tmp | |
if [ $# = 0 ] | |
then | |
echo "Usage: `basename $0` " '$HISTFILE' | |
exit 1 | |
fi |
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/sh | |
while : | |
do | |
for moon in 🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘 | |
do | |
printf "$moon\r" | |
sleep 0.1 | |
done | |
done |
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 | |
# newer version is available in https://github.com/arai-ta/git-open | |
set -e | |
set -u | |
#set -x | |
if ! git show >/dev/null | |
then |
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/sh | |
# WiFi | |
networksetup -getairportnetwork en0 | |
# List service & status | |
networksetup -listallnetworkservices | \ | |
sed -e '1d' | \ | |
while read s | |
do | |
networksetup -getinfo "$s" | \ |
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
// ==UserScript== | |
// @name ctrl key shortcut | |
// @namespace http://www.chatwork.com/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author arai@chatwork.com | |
// @match https://www.chatwork.com/* | |
// @grant none | |
// ==/UserScript== |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ConsentText</key> | |
<dict> | |
<key>default</key> | |
<string><!-- ここにインストール前の確認メッセージを入れます --></string> | |
</dict> | |
<key>PayloadContent</key> |