Skip to content

Instantly share code, notes, and snippets.

View whirlxd's full-sized avatar
:shipit:
website out

Whirl whirlxd

:shipit:
website out
View GitHub Profile
@whirlxd
whirlxd / readme.md
Created July 6, 2021 11:42
How to Add Darkmode to your website? [Darkmode.js]

How to ?

first step:
add this code in your html page

<script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
<script>
  function addDarkmodeWidget() {
    new Darkmode().showWidget();
  }
 window.addEventListener('load', addDarkmodeWidget);
@whirlxd
whirlxd / main.js
Created October 2, 2021 16:49
Webhook Sender API
/*Code for a webhook api
Example usage:*/
// http://localhost:3000/webhook?url=https://canary.discord.com/api/webhooks/hook-id/hook-token&message=xdd&username=yoo```
js
const express = require("express");
const app = express();
const { WebhookClient: hook } = require("discord.js"); //webhook client sounds shit so i renamed it to hook!
app.get("/webhook", async (req, res) => {
//destructred query params
const { url, message, avatarUrl, username } = req.query;
@whirlxd
whirlxd / exposé.md
Created October 12, 2021 10:25
Exposing RainbowStudios

We, The management of Nugget Development™ would be cutting all ties with RainbowStudios

Welcome to my podcast! namely exposing rainbowstudio

Introduction

We let them go with everything in the past but theres a lot of controversy going on with epikhost and RainbowStudios, with DDoS threats to raiding. I'm all against RainbowStudios for the reasons listed below, and to prevent this from happening to our upcoming host, We'll be taking this step.

why hate RainbowStudios?

@whirlxd
whirlxd / cloudSettings
Last active January 24, 2022 13:43
Visual Studio Code Settings Sync
{"lastUpload":"2022-01-24T13:43:48.299Z","extensionVersion":"v3.4.3"}