Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Fix Twitter
// @namespace https://gist.github.com/rcombs/
// @version 0.1
// @description stop Twitter from being a piece of ѕһіt
// @author Rodger Combs
// @match https://twitter.com/*
// @grant GM_addStyle
// @downloadURL https://gist.github.com/rcombs/dd041d75357107ef7e2b26ba077a9612/raw/fix-twitter.user.js
// ==/UserScript==
@nylki
nylki / char-rnn recipes.md
Last active March 16, 2024 15:13
char-rnn cooking recipes

do androids dream of cooking?

The following recipes are sampled from a trained neural net. You can find the repo to train your own neural net here: https://github.com/karpathy/char-rnn Thanks to Andrej Karpathy for the great code! It's really easy to setup.

The recipes I used for training the char-rnn are from a recipe collection called ffts.com And here is the actual zipped data (uncompressed ~35 MB) I used for training. The ZIP is also archived @ archive.org in case the original links becomes invalid in the future.

@phr34k
phr34k / gist:7679738
Created November 27, 2013 17:29
Save 32-bit color rgba bitmap (hbitmap) to a png file using libpng.
#include <windows.h>
#include "extern/png/png.h"
#include <stdio.h>
BOOL SaveToFilePng(HBITMAP hBitmap, LPCSTR lpszFileName)
{
BITMAP Bitmap;
GetObject(hBitmap, sizeof(Bitmap), (LPSTR)&Bitmap);
unsigned int bitmap_bytes_per_pixel = 4;
unsigned int bitmap_scanline_size = (((Bitmap.bmWidth * bitmap_bytes_per_pixel) + (4 - 1)) & ~(4 - 1));
anonymous
anonymous / quicklog.h
Created November 27, 2011 10:18
Quicklog: For when printf isn't enough but a full logging library is too much
//quicklog.h
//include it, and just loginfo("hello, %s", "world");
//MIT licence
#include <stdio.h>
#include <time.h>
#ifndef QUICKLOG_H
#define QUICKLOG_H