Skip to content

Instantly share code, notes, and snippets.

View nathangathright's full-sized avatar
🎧
Full of information. Some of it's actually useful.

Nathan Gathright nathangathright

🎧
Full of information. Some of it's actually useful.
View GitHub Profile

Twitter abuses all media file uploads, each type in its own way. If we want to upload a good looking animation loop from some low-color, high-detail generative art, we have to game their system's mechanisms.

  • don't upload a video file, they will re-encode it into absolute 💩

  • create a GIF, which they will auto-convert into a video file 😱

  • The frames of the GIF will be resized to an even-sized width using an extremely naive algorithm. Your GIF should be an even size (1000, 2000,

@nikjft
nikjft / zapier_webhook_bookmarklet.js
Last active August 20, 2019 08:24 — forked from brunohq/zapier_webhook_bookmarklet.js
Bookmarklet to trigger a Zapier Webhook from any web page. Any selected text as well as the page title and URL are passed to Zapier.
javascript:(function()
{
var webhookURL = '[your webhook URL from Zapier]';
var selectedText = encodeURIComponent(window.getSelection().toString());
var iframe = document.createElement('iframe');
iframe.name = 'response';
iframe.style.visibility = 'hidden';
document.body.appendChild(iframe);
var form = document.createElement('form');
@Ryonez
Ryonez / (Unofficial) Discord server rules suggestions list.md
Last active June 24, 2024 15:23
(Unofficial) Discord server rules suggestions list

Discord

(Unofficial) Discord server rules suggestions list

Author's Note

I'll start off with letting you know this is a fork from someone else. However, for some bizarre reason, this is the one everyone finds, so I better get round to updating this. Credit to Cristiano#2233 for the original idea.

Also, I've had a lot of people saying the rules are to strict. If you pick all the rules here, you're right, it would be very strict. However the rules below are guidelines! They are there for you to pick the ones you desire, you can ignore ones you don't want. Hopefully they might help with rules you wouldn't have thought of otherwise.

<?
// <readme>
/*
This is a lite version of Olark's and Intercom's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!