This file contains hidden or 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> | |
<title>signaling</title> | |
</head> | |
<body> | |
<div class="localVideo"> | |
<video width="320" height="240" style="border: 1px solid black;" autoplay></video> | |
<button >open camera</button> |
This file contains hidden or 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> | |
<title>signaling</title> | |
</head> | |
<body> | |
<div class="websocketControl"> | |
<button class="websocketControl_openCloseButton">open</button> | |
</div> |
This file contains hidden or 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
version: '3' | |
services: | |
db: | |
image: mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_PORT: 3306 | |
ports: | |
- 3306:3306 | |
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci |
This file contains hidden or 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
{ | |
"presets": ["@babel/preset-react"] | |
} |
This file contains hidden or 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
set hlsearch | |
set tabstop=2 | |
set shiftwidth=2 | |
set statusline=%f | |
set laststatus=2 | |
set softtabstop=2 | |
set autowrite | |
call plug#begin('~/.vim/plugged') | |
" go |
This file contains hidden or 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Header struct { | |
ID int | |
Name string |
This file contains hidden or 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
package main | |
import "fmt" | |
func main() { | |
foo := Foo{} | |
InitFoo(&foo) | |
fmt.Printf("%+v\n", foo) | |
bar := Bar{} |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"github.com/go-playground/validator/v10" | |
) | |
type Hoge struct { | |
Num string `validate:"number"` |
This file contains hidden or 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
type propertyValuType<T, Key, KeyOriginal> = Key extends keyof T | |
? KeyOriginal[] extends Key[] | |
? T[Key] | |
: never | |
: never; | |
type PropertyValueType<T, Key> = propertyValuType<T, Key, Key>; | |
type isPropertyKey<T, Key, KeyOriginal> = Key extends keyof T | |
? KeyOriginal[] extends Key[] |
This file contains hidden or 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
tsc --target ES5 --emitDecoratorMetadata --experimentalDecorators | |