Skip to content

Instantly share code, notes, and snippets.

@flxai
flxai / README.md
Created October 2, 2021 11:38
SomaFM client in bash using mpv and pup

SomaFM in bash

Install pup and mpv, place somewhere and execute. It gives a menu like the following that allows you to select the station:

Getting radio stations...
-#O=#   #   #
 1) doomed           12) gsclassic        23) 7soul           34) missioncontrol
 2) dronezone        13) synphaera        24) seventies       35) sf1033
 3) deepspaceone     14) n5md             25) u80s            36) scanner
@soerface
soerface / mixins.py
Last active January 18, 2019 10:11
ActionSerializerMixin for the Django Rest Framework. Allows usage of multiple serializers for a single ViewSet
from typing import Union, Dict
from rest_framework.viewsets import GenericViewSet
from rest_framework.serializers import BaseSerializer
class ActionSerializersMixin(object):
"""
Allows the usage of different serializer classes depending on the action.
When your `ViewSet` class is using this mixin, it should provide a `serializer_classes` attribute instead
of a `serializer_class` attribute. This attribute must be dict, which provides for every action name the
@moeffju
moeffju / de-dictionary-profanity.xml
Last active November 18, 2017 08:48
Android LatinIME Profanity List for German (de)
<wordlist locale="de" description="Deutsch" date="1339787575" version="15" options="german_umlaut_processing">
<!-- snip -->
<w f="0" flags="">Dummkopf</w>
<w f="0" flags="n">after</w>
<w f="0" flags="n">anal</w>
<w f="0" flags="n">angekettet</w>
<w f="0" flags="n">anus</w>
<w f="0" flags="n">ausgezogen</w>
<w f="0" flags="r">bastard</w>
<w f="0" flags="r">besoffen</w>