tsunagu練習NOTE
動かし方
どこかのEC2なりVPSなり固定IPがあるところでserverを以下のように起動.
docker run --rm -p 18080:8080 -e TSUNAGU_TOKEN=token ghcr.io/making/tsunagu-server
どこかのEC2なりVPSなり固定IPがあるところでserverを以下のように起動.
docker run --rm -p 18080:8080 -e TSUNAGU_TOKEN=token ghcr.io/making/tsunagu-server
{ | |
"compilerOptions": { | |
"strict": true, | |
"noUnusedLocals": true, | |
"noUnusedParameters": true, | |
"noImplicitReturns": true, | |
"noFallthroughCasesInSwitch": true, | |
"lib": ["es6", "dom"], | |
"module": "es6", | |
"moduleResolution": "node", |
Change some options for :Prettier
, :PrettierAsync
commands on Vim to be same to the normal yarn prettier file.js --write
command's or VSCode plugin of prettier-vscode
's prettier result.
Add the following configurations to your .vimrc
.
let g:prettier#config#arrow_parens = 'always'
let g:prettier#config#trailing_comma = 'es5'
インスパイア元
歴史を思い出して書いてみる.
# Check your Bluetooth keyboard MAC Address by | |
sudo bluetoothctl devices | |
# Prepare .xmodmap file. | |
# It crashes "xmodmap $HOME/.xmodmap" command when there is no Caps_Lock keysym. | |
# Prepare a script file of "reconnect.sh", and change the MAC address placeholder and some commands in it. | |
# Run this command. | |
sudo btmon | bash reconnect.sh |
#include "stdio.h" | |
int main(int argc, char const* argv[]) | |
{ | |
int array[] = { 0, 10, 20, 30, 40 }; | |
for (int i = 0; i < 5; i++) { | |
printf("%d\n", i[array]); | |
} |
{ | |
"title": "Henkan to Ctrl-Space", | |
"rules": [ | |
{ | |
"description": "Henkan to Ctrl-Space", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "Henkan to Ctrl-Space", | |
"from": { "key_code": "japanese_pc_xfer" }, |
url_common = 'https://ch.ani.tv' | |
url = url_common + '/titles/353' # 353 is ipp ID | |
require 'open-uri' | |
html = open(url).read | |
require 'nokogiri' | |
doc = Nokogiri::HTML.parse html | |
# latest only | |
#puts url_common + doc.xpath('//*[@id="title-detail"]/div[1]/div[3]/div/a').attribute('href') | |
# 1, 2, 3, ... latest | |
doc.xpath('//*[@id="title-detail"]/div[1]/div[4]/div/a').each do |e| |
# vim/vim tags/v8.0.1271 fb094e14c19337de824d4e6710ca6a2617930ab0 | |
./configure \ | |
--with-compiledby="myname <myemail@example.com>" \ | |
--enable-gui=gtk2 \ | |
--enable-perlinterp=yes \ | |
--enable-pythoninterp=yes \ | |
--enable-python3interp=yes \ | |
--enable-rubyinterp \ | |
--enable-luainterp=yes \ |
Messages maintainer: Bram Moolenaar <Bram@vim.org> | |
[vim-hug-neovim-rpc] failed executing: pythonx import neovim | |
[vim-hug-neovim-rpc] Vim(pythonx):Traceback (most recent call last): | |
[deoplete] [vim-hug-neovim-rpc] requires `:pythonx import neovim` command to work | |
[deoplete] function deoplete#enable[1]..deoplete#initialize[1]..deoplete#init#_initialize[11]..deoplete#init#_cha | |
nnel[10]..yarp#core#notify[1]..yarp#core#wait_channel[5]..yarp#core#jobstart[2]..yarp#pyx#init[13]..yarp#core#ser | |
veraddr[1]..neovim_rpc#serveraddr, line 15 |