Skip to content

Instantly share code, notes, and snippets.

:octocat:
https://neos21.hatenablog.jp/

Neos21 Neos21

:octocat:
https://neos21.hatenablog.jp/
View GitHub Profile
@Neos21
Neos21 / GenderEstimate.bas
Created Jun 25, 2020 — forked from lunark/GenderEstimate.bas
VBAマクロ向け関数。GenderEstimate。漢字の名前とふりがなから、性別を推定する関数
View GenderEstimate.bas
Public Function GenderEstimate(strMK As String, Optional strMF As String) As String
GenderEstimate = ""
strMK = Replace(Replace(Replace(strMK, " ", ""), " ", ""), "「", "")
strMF = Replace(Replace(StrConv(strMF, vbHiragana), " ", ""), " ", "")
'デバッグ用。こいつをブレークポイントに持ってきて挙動を確認する
'If strMK Like "理世" Then
' Debug.Print strMK
'End If
@Neos21
Neos21 / scripts.sh
Created Apr 11, 2020
Linux Ubuntu ThinkFan
View scripts.sh
$ find /sys/devices -type f -name "temp*_input" | sort
/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input
/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp1_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp2_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp3_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp4_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp5_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp6_input
View Phone Number Push Message API 2018-01-12.md
  • Request
    • Request Headers
      • HTTP Request : /bot/pnp/push/verified
      • Method : POST
    • Request Header
      • Content-Type : application/json
      • Authorization : Bearer {Channel Access Token}
      • X-Line-Delivery-Tag : Delivery Tag (Optional)
        • フォーマット : EPOCH Time (10桁秒まで) + SHA256 によりハッシュ化した電話番号 (64桁) + ユーザ領域 (26桁)
        • 例 : 15034552939884E28681A7D668CEA94C147C716C0EC9DFE8B80B44EF3B57F6BD0602366BC3menu01
@Neos21
Neos21 / env-ubuntu.sh
Created Feb 28, 2020
WSL GNOME 上のターミナルと Ubuntu 日本語 Remix 上のターミナルとで env を出力・比較する
View env-ubuntu.sh
_=/usr/bin/env
CLUTTER_IM_MODULE=xim
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GDMSESSION=ubuntu
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
View 現場で役立つシステム設計の原則メモ.md
title tags author slide
現場で役立つシステム設計の原則メモ
オブジェクト指向
u_nation
false

オブジェクト指向、設計がなぜ必要か = ソフトウェア全体の整理整頓をするため

第1章 小さくまとめてわかりやすくする

@Neos21
Neos21 / example-splice.js
Created Nov 11, 2019
Array.prototype.splice() の例
View example-splice.js
const myArray = [ 'AA', 'CC', 'XX', 'EE', 'YY', 'FF' ];
// Insert
const inserted = myArray.splice(1, 0, 'BB');
console.log(inserted); // []
console.log(myArray); // [ 'AA', 'BB', 'CC', 'XX', 'EE', 'YY', 'FF' ]
// Replace
const replaced = myArray.splice(3, 1, 'DD');
console.log(replaced); // [ 'XX' ]
@Neos21
Neos21 / neo.ini
Last active Nov 5, 2019
Windows Command Prompt Colour Scheme
View neo.ini
[table]
DARK_BLACK = 0, 0, 0
BRIGHT_BLACK = 100,100,100
DARK_RED = 240, 0, 0
BRIGHT_RED = 240, 0, 0
DARK_GREEN = 0,220, 0
BRIGHT_GREEN = 0,220, 0
DARK_YELLOW = 255,255, 0
BRIGHT_YELLOW = 255,255, 0
DARK_BLUE = 0,140,255
@Neos21
Neos21 / python-docker-setup.md
Created Nov 3, 2019
Python (+ Docker) 環境構築手順
View python-docker-setup.md

Python (+ Docker) 環境構築手順

必要の作業を割り出すフローチャート

  1. Docker 使う?
    1. → 使う
      1. Docker 入れる
      2. Python の Docker イメージを落としてくる
    2. → 使わない
@Neos21
Neos21 / AllBuiltInCameras.swift
Last active Sep 27, 2019
AVCaptureMultiCamSession : SupportedMultiCamDeviceSets on iPhone 11 Pro Max
View AllBuiltInCameras.swift
// iOS13.0 iPhone 11 Pro Max
let discoverySession = AVCaptureDevice.DiscoverySession.init(deviceTypes: [
AVCaptureDevice.DeviceType.builtInWideAngleCamera,
AVCaptureDevice.DeviceType.builtInUltraWideCamera,
AVCaptureDevice.DeviceType.builtInTelephotoCamera,
AVCaptureDevice.DeviceType.builtInDualCamera,
AVCaptureDevice.DeviceType.builtInDualWideCamera,
AVCaptureDevice.DeviceType.builtInTripleCamera,
AVCaptureDevice.DeviceType.builtInTrueDepthCamera
], mediaType: AVMediaType.video, position: AVCaptureDevice.Position.unspecified)
@Neos21
Neos21 / av-capture-device-format.md
Created Sep 16, 2019
iPhone7Plus AVCaptureDeviceFormat
View av-capture-device-format.md
<AVCaptureDeviceFormat: 0x281590660 'vide'/'420v'  192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:58.986, max zoom:189.00 (upscales @21.00), AF System:2, ISO:22.0-1408.0, SS:0.000005-0.333333>
<AVCaptureDeviceFormat: 0x281590650 'vide'/'420f'  192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:58.986, max zoom:189.00 (upscales @21.00), AF System:2, ISO:22.0-1408.0, SS:0.000005-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x281590640 'vide'/'420v'  352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:54.070, max zoom:189.00 (upscales @10.50), AF System:2, ISO:22.0-1408.0, SS:0.000005-0.333333>
<AVCaptureDeviceFormat: 0x281590630 'vide'/'420f'  352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:54.070, max zoom:189.00 (upscales @10.50), AF System:2, ISO:22.0-1408.0, SS:0.000005-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x281590620 'vide'/'4
You can’t perform that action at this time.