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
// compile with `gcc -I/usr/include getxkblayout.c -lX11 -lxkbfile` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <X11/XKBlib.h> | |
#include <X11/extensions/XKBrules.h> | |
int main(int argc, char **argv) { | |
Display *dpy = XOpenDisplay(NULL); |
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
from rest_framework import serializers | |
class CharacterSeparatedField(serializers.WritableField): | |
""" | |
A field that separates a string with a given separator into | |
a native list and reverts a list into a string separated with a given | |
separator. | |
""" | |
def __init__(self, *args, **kwargs): |
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
urxvt.foreground: White | |
urxvt.saveLines: 20000 | |
urxvt.scrollBar: off | |
urxvt.font: xft:inconsolata:size=10:autohint=true:antialias=true | |
urxvt*foreground: #f2f2f2 | |
!urxvt*background: #101010 | |
urxvt*background: #002b37 |