Skip to content

Instantly share code, notes, and snippets.

View gewenyu99's full-sized avatar

Vincent (Wen Yu) Ge gewenyu99

View GitHub Profile
@gewenyu99
gewenyu99 / email.html
Created August 31, 2023 22:41
ChatGPT generated email template
<!DOCTYPE html>
<html>
<head>
<title>Your Cute Email From The {{{{project}}}} Project</title>
</head>
<body style="background-color: #f6f4f2; margin: 0; padding: 0; font-family: Arial, sans-serif;">
<!-- Email Wrapper -->
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border-collapse: collapse; margin-top: 50px;">
<tr>
@gewenyu99
gewenyu99 / appwrite.json
Last active November 27, 2023 21:33
Appwrite Index Example
{
"projectId": "how-do-i-index",
"projectName": "",
"collections": [
{
"$id": "movies",
"$read": [],
"$write": [],
"name": "Movies",
"enabled": true,
@gewenyu99
gewenyu99 / index.js
Created March 28, 2022 21:18
Appwrite Cloud Function as a simple Discord Moderation Bot
const sdk = require("node-appwrite");
const { Client, Intents, MessageEmbed } = require('discord.js');
let client = null;
let appwrite = null;
let database = null;
// This is the entry point for our cloud function
module.exports = async function (req, res) {
if (client) {
@gewenyu99
gewenyu99 / gif_maker
Created February 23, 2022 21:26
Video to gif using openCV
import io
import cv2
import imageio
from proglog import proglog
vidcap = cv2.VideoCapture('my_video.mp4')
def extract_gif(vidcap, fps=15, logger='bar', frame_skip=None):