See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| #SingleInstance force | |
| drag_enabled := 0 | |
| +^#F22:: |
| "use strict"; | |
| const fastify = require("fastify"); | |
| const app = fastify(); | |
| const serverless = require("serverless-http"); | |
| app.get("/test", (request, reply) => { | |
| reply.send({ hello: "world" }); | |
| }); | |
| app.get("/test/one", (request, reply) => { |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| // Discord all events! | |
| // A quick and dirty fleshing out of the discord.js event listeners (not tested at all!) | |
| // listed here -> https://discord.js.org/#/docs/main/stable/class/Client | |
| // Learn from this, do not just copy it mofo! | |
| // | |
| // Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584 | |
| // Last Updated -> Halloween 2022 | |
| /* |
| const mock = (success, timeout = 1000) => { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| if(success) { | |
| resolve(); | |
| } else { | |
| reject({message: 'Error'}); | |
| } | |
| }, timeout); | |
| }); |
| // Load all async functions in one place using google.script.run wrapped in Promise.all | |
| // Function takes array of function names (as strings) and returns an array of resolved promises | |
| const loadAll = fncs => { | |
| return Promise | |
| .all(fncs.map(fn => new Promise(res => | |
| google.script.run.withSuccessHandler(data => res(data))[fn]() | |
| )) | |
| ) | |
| } |