- git clone
- mkdir pgdata
- docker-compose run -e POSTGRES_PASSWORD=password postgres
- docker-compose up
- psql -h localhost -U postgres -f ./create_database.sql
- psql -h localhost -U postgres -f ./create_table.sql collation_practice
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
#! /bin/sh | |
target_version=2017 | |
main () { | |
config_file=$1 | |
if [ -z "$config_version" ]; then | |
cat <<EOD | |
eslint config file not specified |
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
module.exports = () => { | |
const plugins = [ | |
// Sass独自の _ スコア始まりのファイル名や glob 対応 | |
require('postcss-easy-import')({ | |
extensions: ['.css', '.scss'], | |
prefix: '_' | |
}), | |
// Sass独自の `//' コメントを削除 | |
require('postcss-strip-inline-comments'), | |
// Sassのコンパイル |
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
document.readyState: interactive | |
Stimulus.Controller: connect | |
document: DOMContentLoaded | |
document.readyState: complete | |
window: load | |
window: pageshow |
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width"> | |
</head> | |
<body> | |
<script type="text/javascript" src="https://unpkg.com/page-lifecycle@0.1.2/dist/lifecycle.es5.js"></script> | |
<script type="text/javascript"> | |
lifecycle.addEventListener('statechange', (event) => { | |
console.log('statchange') | |
console.log(event) |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="https://cdn.jsdelivr.net/npm/stimulus@2.0.0/dist/stimulus.umd.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/mobx@6.1.7/dist/mobx.umd.development.js"></script> | |
<script> | |
mobx.configure({ | |
enforceActions: "always" | |
}) |
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 class FooModel extends Function { | |
private repos: any | |
/** | |
* @param {object} repos | |
* @return {Proxy} | |
*/ | |
constructor (repos: any = createRepository('foo')) { | |
super() | |
this.repos = repos |
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
import { NestFactory } from '@nestjs/core' | |
import { AppModule } from './app.module' | |
const repl = require('repl') | |
async function bootstrap () { | |
const app = await NestFactory.createApplicationContext(AppModule) | |
console.log('starting repl ...') | |
repl.start().context.app = app | |
} |
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
import { NestFactory } from '@nestjs/core' | |
import { AppModule } from './app.module' | |
const repl = require('repl') | |
async function bootstrap () { | |
const app = await NestFactory.createApplicationContext(AppModule) | |
console.log('starting repl ...') | |
repl.start().context.app = app | |
} |
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
.py-2 { | |
padding-top: 6px !important; | |
padding-bottom: 6px !important; | |
} | |
.BorderGrid--spacious .BorderGrid-cell { | |
padding-top: 16px; | |
padding-bottom: 16px; | |
} |