I hereby claim:
- I am yuu on github.
- I am yuuxzy (https://keybase.io/yuuxzy) on keybase.
- I have a public key ASA7f0vj9nrURoTOnkNa-4ZXffoCy-6A_hUP7N0baeyAlwo
To claim this, I am signing this object:
! Hybrid Terminal Colours. Uses the palette from Tomorrow-Night: | |
! https://github.com/chriskempson/tomorrow-theme/blob/master/vim/colors/Tomorrow-Night.vim | |
! vim: ft=xdefaults | |
*background: #1D1F21 | |
*foreground: #C5C8C6 | |
! black | |
*color0: #282A2E | |
*color8: #373B41 | |
! red |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash -x | |
# https://developer.apple.com/library/archive/technotes/tn2450/_index.html | |
# https://qiita.com/hetima/items/b475997008dabd567da0 | |
target=`hidutil list |grep 'Apple Internal Keyboard' |head -n 1 |awk 'BEGIN{printf "\{%s","\"VendorID\":"} {printf "%s",$1} {printf "%s",","} {printf "%s","\"ProductID\":"} END{printf "%s\}\n",$2}'` | |
# 0x700000000 | |
# LeftControl=0xE0 | |
LeftControl=0x7000000E0 |
https://docs.swift.org/swift-book/LanguageGuide/Properties.html
xcode: | 11 |
---|---|
target/platform: | iOS 13.1 |
swift: | 5 |
warning: | 'defer' statement before end of scope always executes immediately; replace with 'do' statement to silence this warning |
fix-suggest: | Replace 'defer' with 'do' |
func doSomething(value: Int?, value2: Int?) {
guard let value = value else { return }
eventfd is passing counting value.
eventfd_write(fd, 1);
-> read result: 1
eventfd_write(fd, 1);
eventfd_write(fd, 1);
-> read result: 2
#include <iostream> | |
#include <cstdio> | |
#include <map> | |
#include <vector> | |
#include <algorithm> | |
namespace { | |
std::vector<int> vec = {1, 2, 3}; | |
void result(bool ret, const char *func) { | |
printf("%s result: ", func); |