Skip to content

Instantly share code, notes, and snippets.

View Northernside's full-sized avatar
🐕

Elias Northernside

🐕
View GitHub Profile
@axiozygen
axiozygen / index.js
Last active February 9, 2022 18:46
Discord.js Embed Builder Slash Command
const Discord = require('discord.js');
const dotenv = require('dotenv');
const testGuildId = '<your-guild-id-here>';
dotenv.config;
const client = new Discord.Client();
const getApp = (testGuildId) => {
const app = client.api.applications(client.user.id);
if (testGuildId) {
@prail
prail / polyglot.bat
Created October 23, 2017 17:00
Bash and Batch polyglot. (Really nice for build scripts that need to support multiple platforms.)
echo off
echo ; set +v # > NUL
echo ; function GOTO { true; } # > NUL
GOTO WIN
# bash part, replace it to suit your needs
exit 0
:WIN
REM win part, replace it to suit your needs
@aras-p
aras-p / preprocessor_fun.h
Last active July 16, 2024 02:50
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,