Skip to content

Instantly share code, notes, and snippets.

View lazka's full-sized avatar
💭
🐍🐧👣

Christoph Reiter lazka

💭
🐍🐧👣
View GitHub Profile
import requests
from bs4 import BeautifulSoup
from concurrent.futures import ThreadPoolExecutor
URL = "https://stats.lineageos.org/"
mapping = {}
r = requests.get("https://wiki.lineageos.org/devices/")
soup = BeautifulSoup(r.text, 'html.parser')
#!/usr/bin/env python3
import sys
import os
import pycparser
from pycparser import c_parser
def get_symbols():
symbols = set()
diff --git a/quodlibet/quodlibet/qltk/x.py b/quodlibet/quodlibet/qltk/x.py
index df4bdb8..0a84b3a 100644
--- a/quodlibet/quodlibet/qltk/x.py
+++ b/quodlibet/quodlibet/qltk/x.py
@@ -10,9 +10,11 @@ Things that are more or less direct wrappers around GTK widgets to
ease constructors.
"""
-from gi.repository import Gtk, GObject, GLib, Gio
+from gi.repository import Gtk, GObject, GLib, Gio, GdkPixbuf
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
import sys