See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
export function validateNumberInput (e, min = 0, max = 1e10) { | |
const currentValue = e.target.value | |
const validKeys = ['ArrowLeft', 'ArrowRight', 'Backspace', 'Tab', 'Delete', '.'] | |
// Allow valid control keys | |
if (validKeys.includes(e.key)) { | |
return | |
} | |
// Prevent entering non-numeric keys except '.' |
FROM oven/bun:latest AS build-stage | |
WORKDIR /app | |
ADD package.json bun.lockb ./ | |
RUN bun install --frozen-lockfile | |
ADD . . | |
RUN bun run build | |
FROM oven/bun:1-alpine | |
WORKDIR /app |
import { Elysia } from "elysia"; | |
import { staticPlugin } from '@elysiajs/static'; | |
const app = new Elysia() | |
app.use(staticPlugin({ | |
prefix: '', | |
assets : "./dist", | |
})) | |
app.get('/', async () => { |
import { fileURLToPath } from 'node:url' | |
import { defineConfig, devices } from '@playwright/test' | |
import type { ConfigOptions } from '@nuxt/test-utils/playwright' | |
// For first setup !! | |
// Please run 'npx playwright install' to install the browser | |
// Increase the timeout to 2 minutes (because Nuxt server is start so slow) | |
const timeout = 120000 | |
const hostUrl = 'http://0.0.0.0:3001' |
/*** | |
GitHub page: https://github.com/elad2412/the-new-css-reset | |
***/ | |
/* | |
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property | |
- The "symbol *" part is to solve Firefox SVG sprite bug | |
- The "html" attribute is exclud, because otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36) | |
*/ | |
*:where( |
const express = require('express') | |
const next = require('next') | |
const Cache = require('lru-cache'); | |
const compression = require('compression') | |
const port = parseInt(process.env.PORT, 10) || 3000 | |
const dev = process.env.NODE_ENV !== 'production' | |
const app = next({ dev }) |
// Google Play API Key | |
// ref: http://stackoverflow.com/questions/35127086/android-inapp-purchase-receipt-validation-google-play | |
// ref: https://developers.google.com/android-publisher/authorization | |
// ref: http://google.github.io/google-api-nodejs-client/18.0.0/index.html#toc14__anchor | |
// | |
// install npm package | |
// ref: https://github.com/google/google-api-nodejs-client | |
// $ npm install googleapis --save | |
// | |
const google = require('googleapis'); |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
export const subDistricts = [ | |
{ "SUB_DISTRICT_ID": 1, "SUB_DISTRICT_CODE": "100101", "SUB_DISTRICT_NAME": "พระบรมมหาราชวัง", "DISTRICT_ID": 1, "PROVINCE_ID": 1, "GEO_ID": 2 }, | |
{ "SUB_DISTRICT_ID": 2, "SUB_DISTRICT_CODE": "100102", "SUB_DISTRICT_NAME": "วังบูรพาภิรมย์", "DISTRICT_ID": 1, "PROVINCE_ID": 1, "GEO_ID": 2 }, | |
{ "SUB_DISTRICT_ID": 3, "SUB_DISTRICT_CODE": "100103", "SUB_DISTRICT_NAME": "วัดราชบพิธ", "DISTRICT_ID": 1, "PROVINCE_ID": 1, "GEO_ID": 2 }, | |
{ "SUB_DISTRICT_ID": 4, "SUB_DISTRICT_CODE": "100104", "SUB_DISTRICT_NAME": "สำราญราษฎร์", "DISTRICT_ID": 1, "PROVINCE_ID": 1, "GEO_ID": 2 }, | |
{ "SUB_DISTRICT_ID": 5, "SUB_DISTRICT_CODE": "100105", "SUB_DISTRICT_NAME": "ศาลเจ้าพ่อเสือ", "DISTRICT_ID": 1, "PROVINCE_ID": 1, "GEO_ID": 2 }, | |
{ "SUB_DISTRICT_ID": 6, "SUB_DISTRICT_CODE": "100106", "SUB_DISTRICT_NAME": "เสาชิงช้า", "DISTRICT_ID": 1, "PROVINCE_ID": 1, "GEO_ID": 2 }, | |
{ "SUB_DISTRICT_ID": 7, "SUB_DISTRICT_CODE": "100107", "SUB_DISTRICT_NAME": "บวรนิเวศ", "DISTRICT_ID": 1, "PROVINCE_ID": |