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
esc Escape | |
1 1 | |
2 2 | |
3 3 | |
4 4 | |
5 5 | |
6 6 | |
7 7 | |
8 8 | |
9 9 |
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
#!/usr/bin/python3 | |
# Generates a keyd config consisting of modifier layers in which each modified keycode is | |
# mapped to its identity. This is a proof of concept and not intended to be used | |
# in practice. See https://github.com/rvaiya/keyd/issues/119 | |
from itertools import combinations | |
mods = ['meta', 'alt', 'shift', 'control'] |
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
// Author: Raheman Vaiya | |
// License: WTFPL | |
// | |
// A tiny zip generator in < 70 lines of javascript. | |
// Produces an uncompressed zip blob when fed an array | |
// of the form: | |
// | |
// [{name: 'filename', data: <Uint8Array>}] | |
// | |
// Useful for bookmarklets, don't use this in production :P. |
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" | |
import "hash/crc32" | |
// Basically an annotated runnable hex dump :P. See zip-implementation.go for an | |
// overview of the format and a barebones implementation. | |
func main() { | |
name := "test file.txt" |
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
/* | |
* Author: Raheman Vaiya | |
* License: WTFPL (do you really need one?) | |
* */ | |
#include <stdio.h> | |
#include <sys/time.h> | |
#include <sys/types.h> | |
#include <dirent.h> | |
#include <string.h> |