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
| # 事前準備 | |
| sudo apt install -y build-essential # c++コンパイラ | |
| sudo apt install -y libffi-dev | |
| sudo apt install -y libssl-dev # openssl | |
| sudo apt install -y zlib1g-dev | |
| sudo apt install -y liblzma-dev | |
| sudo apt install -y libbz2-dev libreadline-dev libsqlite3-dev # bz2, readline, sqlite3 | |
| # pyenv本体のダウンロードとインストール | |
| sudo apt install -y git |
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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging | |
| .Python |
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.8" | |
| volumes: | |
| db-store: | |
| services: | |
| db: | |
| image: postgres:11-alpine | |
| ports: | |
| - target: 5432 | |
| published: ${DB_PORT:-5432} | |
| protocol: tcp |
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
| <template> | |
| <transition | |
| name="slide" | |
| @before-enter="(el) => (el.style.height = '0')" | |
| @enter="(el) => (el.style.height = el.scrollHeight + 'px')" | |
| @before-leave="(el) => (el.style.height = el.scrollHeight + 'px')" | |
| @leave="(el) => (el.style.height = '0')" | |
| > | |
| <div v-if="isOpened" class="slide-body"> | |
| <slot /> |
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
| # Disable pnp to avoid conflicts with eslint / tsserver | |
| nodeLinker: node-modules |
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
| # yarn / without zero install | |
| # reference: https://github.com/yarnpkg/berry/issues/454 | |
| .yarn/* | |
| !.yarn/plugins | |
| !.yarn/releases | |
| .pnp.* |
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
| { | |
| "name": "sample", | |
| "version": "0.1.0", | |
| "private": true, | |
| "scripts": { | |
| "schema:update": "npx openapi2aspida -i=docs/openapi.yml", | |
| "predev": "schema:update" | |
| "dev": "next dev", | |
| "prebuild": "schema:update", | |
| "build": "next build", |
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
| import React, { useState } from 'react'; | |
| import { createPortal } from 'react-dom'; | |
| import { ModalCloseButton } from '@/components/buttons/ModalCloseButton/ModalCloseButton'; | |
| import { useClient } from '@/hooks/common/useClient'; | |
| const ModalPortal: React.FC = ({ children }) => { | |
| const isClient = useClient(); | |
| return isClient ? createPortal(children, document.getElementsByTagName('body')[0]!) : <>{children}</>; | |
| }; |
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
| /* @tailwind base; */ | |
| /* Aboid conflict with Mantine | |
| * Default Style Sheet (modern-normalize): https://unpkg.com/tailwindcss@3.0.23/src/css/preflight.css | |
| */ | |
| /* | |
| 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) | |
| 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) | |
| */ | |
| *, |
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
| // Not good | |
| const Page = () => ( | |
| <main className="bg-background"> | |
| <section className="p-6"> | |
| <h1 className="text-2l font-bold">A page title</h1> | |
| <p className="text-md text-foreground">Content...</p> | |
| <ul className="list-disc"> | |
| <li>List Item 1</li> | |
| <li>List Item 2</li> | |
| </ul> |
OlderNewer