Skip to content

Instantly share code, notes, and snippets.

View tcardlab's full-sized avatar
🥐
Strudel Time

tcardlab tcardlab

🥐
Strudel Time
View GitHub Profile
@dakshin-k
dakshin-k / drag.ahk
Created May 27, 2020 09:52
AutoHotKey Script for Three finger Click and Drag gesture on Windows
#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::
@Wenangsani
Wenangsani / fastify_netlify.js
Created January 9, 2020 07:21
Fastify for Netlify
"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) => {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaimergp
jaimergp / CondaExampleWithOpenMM.ipynb
Last active April 22, 2021 16:32
Using OpenMMTools in Google Colab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 13, 2025 06:16
Conventional Commits Cheatsheet
// 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
/*
@jofftiquez
jofftiquez / mock-http.js
Last active December 10, 2025 00:19
Mock HTTP request in javascript using promise and timeout.
const mock = (success, timeout = 1000) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
if(success) {
resolve();
} else {
reject({message: 'Error'});
}
}, timeout);
});
@tanaikech
tanaikech / submit.md
Last active June 8, 2025 13:05
Benchmark: Loop for Array Processing using Google Apps Script without V8

Benchmark: Loop for Array Processing using Google Apps Script without V8

April 16, 2018 Published.

July 26, 2018 Updated. Result of reduce was added.

@viktmv
viktmv / promiseWrapper.js
Last active November 13, 2024 18:51
Google App Script Promise.all wrapper for google.script.run
// 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]()
))
)
}