- Ruby: lake(湖)をrakeと書き間違える
- OOP: インスタンスラーメン
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
root = Dir.getwd.to_s | |
bind "unix://#{root}/tmp/puma/socket" | |
pidfile "#{root}/tmp/puma/pid" | |
state_path "#{root}/tmp/puma/state" | |
rackup "#{root}/config.ru" | |
threads 4, 8 | |
activate_control_app |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Chunithm Nameplate</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: 'Helvetica Neue', 'メイリオ', sans-serif; | |
} |
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
(function() { | |
let result = `` | |
result += `# ${document.querySelector('.lines .line-title').innerText}\n` | |
let insideCode = false | |
let afterBlankLine = false | |
document.querySelectorAll('.lines .line:not(:first-child) .text > span:last-child').forEach((el, idx) => { | |
let ht = el.innerHTML | |
.replace(/<span class="c-(\d+)( empty-char-index)?"( style="")?>(.)<\/span>/g, '$4') // normal text |
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
6, 0, 「@」, f2"ayl^f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H | |
{} | |
6, 51, 「2」, "ayl^f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H | |
{} | |
6, 51, 「2」, ^f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H | |
{"a"=>"2"} | |
6, 0, 「@」, f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H | |
{"a"=>"2"} | |
6, 3, 「0」, "cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H | |
{"a"=>"2"} |
$ nasm kirakira_pbr.asm
$ sudo dd if=kirakira_pbr of=/dev/to/your/mbr/usb/partition bs=512 count=1
Use a USB memory which uses MBR (not UEFI).
dd
rewrites your USB's PBR (boot loader); don't forget to save backup and play at your own risk!
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
const puppeteer = require('puppeteer') | |
const URLs = [ | |
'http://abehiroshi.la.coocan.jp/', | |
'https://www.jcp.or.jp/', | |
'https://www.komei.or.jp/', | |
'https://cdp-japan.jp/', | |
'https://kibounotou.jp/', | |
'https://o-ishin.jp/', | |
'http://www.liberalparty.jp/', | |
'http://www5.sdp.or.jp/', |
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
{ | |
"title": "HHKB sei0o settings", | |
"rules": [ | |
{ | |
"description": "Set Right Alt key to toggle the input mode", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "hogehoge", | |
"from": { "key_code": "right_alt" }, |
I hereby claim:
- I am sei0o on github.
- I am sei0o (https://keybase.io/sei0o) on keybase.
- I have a public key ASA-7Q-FW0ixdvr9Bh0gzHRYolSr68npeggU5H6fNRVOGgo
To claim this, I am signing this object:
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
sei0o@sei0oarch ~/D/sekigae> cat after_zenki_chukan_2.csv | |
9, 37, 17, 39, 24, 18 | |
15, 28, 11, 33, 13, 27 | |
0, 26, 31, 16, 40, 3 | |
22, 14, 6, 1, 41, 34 | |
38, 32, 8, 2, 19, 23 | |
30, 29, 10, 35, 20, 21 | |
7, 42, 36, 4, 25, 12 | |
5 | |
sei0o@sei0oarch ~/D/sekigae> sha256sum after_zenki_chukan_2.csv |