You can add all conventional comments Labels to Github as a saved replies by following the following steps:
- Go to https://github.com/settings/replies
- Open Developer Tools
- Copy/Paste above code in JavaScript console
- Press enter
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
from icalendar import Calendar | |
from datetime import timedelta | |
from itertools import groupby | |
from operator import itemgetter | |
def calculate_time(event): | |
start = event['DTSTART'].dt | |
end = event['DTEND'].dt | |
return end - start |
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
{ | |
"scripts": { | |
"preinstall": "node --eval \"!process.env.npm_config_user_agent.startsWith('pnpm/')&&(console.log('Use `pnpm install` to install dependencies in this repository')||true)&&process.exit(1)\"" | |
} | |
} |
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
// config/env.ts | |
import assert from "utils/assert" | |
import * as z from "zod" | |
assert(typeof window === "undefined", | |
"The config/env.ts file cannot be used in the browser") | |
const isProduction = process.env.NODE_ENV === "production" | |
const isDevelopment = process.env.NODE_ENV === "development" | |
const isTest = process.env.NODE_ENV === "test" |