Skip to content

Instantly share code, notes, and snippets.

View SchoolyB's full-sized avatar

Marshall SchoolyB

View GitHub Profile
@adjeim
adjeim / CORS Cheat Sheet for Express + TypeScript.md
Last active January 23, 2025 23:42
CORS Cheat Sheet for Express + TypeScript
  1. Install cors package and its TypeScript types:
npm install cors
npm install --save-dev @types/cors
  1. Update the entry point of your Express app to allow your server to use cors middleware. Configure your CORS options with the origins you would like to allow.
import express from 'express';
.php
.html
.txt
.htm
.aspx
.asp
.js
.css
.pgsql.txt
.mysql.txt
@lukasrudnik
lukasrudnik / Flexbox Froggy answers
Created May 30, 2017 08:31
Solutions Flexbox Froggy
1) justify-content: flex-end;
2) justify-content: center;
3) justify-content: space-around;
4) justify-content: space-between;
5) align-items: flex-end;
6) align-items: center;
justify-content: center;
7) justify-content: space-around;
8) flex-direction: row-reverse;
9) flex-direction: column;
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active June 27, 2025 16:35
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings