おのうえ(@_likr)です。
モダンJavaScriptの便利な書き方や、Linterに怒られないコードの書き方などを紹介します。
| import "./styles.css"; | |
| import { Person } from "./types"; | |
| import { Listbox } from "./listbox/listbox"; | |
| import { useForm } from "react-hook-form"; | |
| const people: Person[] = [ | |
| { id: 1, name: "Durward Reynolds", unavailable: false }, | |
| { id: 2, name: "Kenton Towne", unavailable: false }, | |
| { id: 3, name: "Therese Wunsch", unavailable: false }, | |
| { id: 4, name: "Benedict Kessler", unavailable: true }, |
| //- +prefectures(true || false) | |
| mixin prefectures(required) | |
| select(name='都道府県', required=required) | |
| option(value='', selected='selected') | |
| | 【選択して下さい】 | |
| optgroup(label='北海道・東北地方') | |
| option(value='北海道') | |
| | 北海道 | |
| option(value='青森県') | |
| | 青森県 |
おのうえ(@_likr)です。
モダンJavaScriptの便利な書き方や、Linterに怒られないコードの書き方などを紹介します。
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true |
| #!/bin/sh | |
| DBNAME="" #データベース名 | |
| DBUSER="" #データベースユーザ名 | |
| DBPASS="" #データベースパス | |
| DBHOST="" #データベースホスト | |
| DBPREFIX="" #テーブルのプレフィックス ex. wp_ | |
| # ############ |
| // `.js-matchHeight`がページ内にあればその要素の高さを揃える | |
| $(function() { | |
| var $class = $('.js-matchHeight'); | |
| if($class.length) { | |
| $class.matchHeight(); | |
| } | |
| }); |
| $ease-in-sine: cubic-bezier(0.47, 0, 0.745, 0.715); | |
| $ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1); | |
| $ease-in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95); | |
| $ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
| $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| $ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955); | |
| $ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |
| $ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); | |
| $ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1); | |
| $ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); |