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
export function ClassName(name: string) { | |
return function actualDecorator<T, U = unknown>( | |
constructor: new (...args: T[]) => U, | |
arg: ClassDecoratorContext | |
) { | |
console.log(arg); | |
constructor.prototype.className = name; | |
}; | |
} |
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
<div class="h-80 w-full"><slot /></div> |
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 ErrorMessageTemplate = { | |
ElementNotFoundError({ elementId }: { elementId: string }) { | |
return `element not found: elementId=${elementId}`; | |
}, | |
UserNotFoundError({ userId }: { userId: string }) { | |
return `user not found: userId=${userId}`; | |
}, | |
}; | |
export class AppError< |
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
set hlsearch | |
" インデントを制御する | |
"" vimはインデントという概念を持っていて、以下の設定でインデントを具体化する | |
"" 参考: https://qiita.com/ysn/items/f4fc8f245ba50d5fb8b0 | |
set tabstop=2 " タブ制御文字の見た目を空白2文字にする | |
set shiftwidth=2 " インデントの見た目を空白2文字にする | |
call plug#begin('~/.config/nvim/plugged') |
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
{ | |
"name": "webpack-example", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
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> | |
<title>signaling</title> | |
</head> | |
<body> | |
<div class="video"> | |
<video id="localVideo" width="320" height="240" style="border: 1px solid black;" autoplay></video> | |
<video id="remoteVideo" width="320" height="240" style="border: 1px solid black;" autoplay></video> |
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
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"strings" | |
"time" |
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
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"strings" | |
"time" |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
"github.com/gorilla/websocket" | |
"github.com/labstack/echo/v4" |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
"github.com/gorilla/websocket" | |
"github.com/labstack/echo/v4" |
NewerOlder