Skip to content

Instantly share code, notes, and snippets.

diff --git a/river/XdgPopup.zig b/river/XdgPopup.zig
index 0f5b97d..381897a 100644
--- a/river/XdgPopup.zig
+++ b/river/XdgPopup.zig
@@ -91,6 +91,11 @@ fn handleDestroy(listener: *wl.Listener(*wlr.XdgSurface), wlr_xdg_surface: *wlr.
fn handleMap(listener: *wl.Listener(*wlr.XdgSurface), xdg_surface: *wlr.XdgSurface) void {
const self = @fieldParentPtr(Self, "map", listener);
+ var iterator = self.wlr_xdg_popup.base.surface.subsurfaces.iterator(.forward);
+ while (iterator.next()) |subsurface| {
import kivy
kivy.require('1.10.1')
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.core.window import Window
kv = """
@inclement
inclement / gist:bb08b2e1406d62b314f15ed40e60c0b8
Created February 16, 2020 13:44
Demonstration of having drawing wrap around the sceen in Kivy.
from kivy.app import App
from kivy.graphics import Ellipse, InstructionGroup, Color, Translate, Canvas, PushMatrix, PopMatrix
from kivy.uix.widget import Widget
from kivy.clock import Clock
import math
import itertools
import random
from kivy.lang import Builder
from kivy.base import runTouchApp
from kivy.uix.image import Image
from kivy.uix.gridlayout import GridLayout
from kivy.clock import Clock
class SizeImage(Image):
pass
class ImagesGrid(GridLayout):
from kivy.app import App
from kivy.base import runTouchApp
from kivy.lang import Builder
from kivy.uix.widget import Widget
from kivy.properties import ListProperty
from kivy.core.window import Window
from colorsys import hls_to_rgb
class ColourApp(App):
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by HarfBuzz configure 0.9.40, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --without-icu --host=arm-linux-androideabi --prefix=/home/sandy/.local/share/python-for-android/build/other_builds/harfbuzz/armeabi-v7a__ndk_target_21/harfbuzz --with-freetype=yes --without-glib
## --------- ##
## Platform. ##
[INFO]: Building harfbuzz for armeabi-v7a
[INFO]: -> directory context /home/sandy/.local/share/python-for-android/build/other_builds/harfbuzz/armeabi-v7a__ndk_target_21/harfbuzz
[DEBUG]: -> running configure --without-icu --host=arm-linux-androideabi --prefix=/home/sandy/.local/share/python-for-android/build/other_builds/harfbuzz/armeabi-v7a__ndk_target_21/harfbuzz --with-freetype=yes --without-glib
[DEBUG]: checking for a BSD-compatible install... /usr/bin/install -c
[DEBUG]: checking whether build environment is sane... yes
[DEBUG]: checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip --strip-unneeded
[DEBUG]: checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
[DEBUG]: checking for gawk... gawk
[DEBUG]: checking whether make -j5 sets $(MAKE)... yes
[DEBUG]: checking whether make -j5 supports nested variables... yes
url = "https://genius.com/Joyner-lucas-isis-lyrics"
def news():
global lyrics
page = urlopen(Request(url, headers={'User-Agent': 'Mozilla'}))
soup = BeautifulSoup(page, "html.parser")
lyrics = soup.p.text.strip()
news()
url = "https://genius.com/Joyner-lucas-isis-lyrics"
def news():
global lyrics
page = urlopen(Request(url, headers={'User-Agent': 'Mozilla'}))
soup = BeautifulSoup(page, "html.parser")
lyrics = soup.p.text.strip()
news()
from kivy.uix.widget import Widget
from kivy.graphics import Rectangle, Color
from kivy.properties import (ListProperty, NumericProperty, ObjectProperty)
from kivy.lang import Builder
from matplotlib.pyplot import get_cmap #
class Heatmap(Widget):