This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name ircord | |
@description Discord: use xchat-like aligned nick gutter. Gives an irc like feeling to compact & cozy mode | |
@namespace discord.com | |
@version 4.1.1 | |
@author anakojm | |
@license CC0 | |
==/UserStyle== */ | |
[class*="messageListItem"] > [class*="message"] > [class*="contents"] > [class*="header"], | |
/* First message of a thread */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gcc -lz anakojm.c && ./a.out 1 1 */ | |
#include <zlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
uint8_t* CompressPNG(void *img, int w, int h, int numchans, unsigned int* len_out) { | |
int p = w * numchans; | |
z_stream z = {0}; |