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
// ==UserScript== | |
// @name Mastodon Backspace Fix | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-02-20 | |
// @description Fixes the (double) backspace issue when the browser is configured with a backspace-to-go-back behaviour like browser.backspace_action=0 on Firefox | |
// @author ltlollo | |
// @match https://mastodon.gamedev.place/* | |
// @match https://mastodon.world/* | |
// @match https://mastodon.social/* | |
// @match https://mstdn.social/* |
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
#include <sys/mman.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <assert.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <immintrin.h> |
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
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/sendfile.h> | |
#include <sys/mman.h> | |
#include <stdint.h> | |
#include <err.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <string.h> |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"io/ioutil" | |
"bytes" | |
"bufio" | |
"os" |
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
// This is free and unencumbered software released into the public domain. | |
// For more information, see LICENSE. | |
#if defined(__linux__) | |
# define VK_USE_PLATFORM_XCB_KHR | |
#elif defined(_WIN32) | |
# define VK_USE_PLATFORM_WIN32_KHR | |
# define main(...) WINAPI wWinMain(HINSTANCE, HINSTANCE, PWSTR, int) | |
#else | |
# error "Unknown Platform" |
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
// This is free and unencumbered software released into the public domain. | |
// For more information, see LICENSE | |
#include <assert.h> | |
#include <err.h> | |
#include <fcntl.h> | |
#include <stdarg.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
I hereby claim:
- I am ltlollo on github.
- I am ltlollo (https://keybase.io/ltlollo) on keybase.
- I have a public key ASDqgZNabWvHe_ilCCzAZ2RY-kIo6OO9YM5_8C-8nze5ywo
To claim this, I am signing this object:
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
package main | |
import ( | |
"os" | |
"log" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"bufio" | |
"strings" |
NewerOlder