Skip to content

Instantly share code, notes, and snippets.

View dbrova15's full-sized avatar

Dmitriy Brova dbrova15

  • Ukraine, Dnipro
View GitHub Profile
@dbrova15
dbrova15 / AdMob Interstitial Ads class for Kivy-ios
Created November 18, 2019 12:46
Snippet to add to main.m in kivy-ios project
UIView *gView;
UIViewController *gViewColtroller;
@interface adInterstitial : NSObject
/// The interstitial ad.
@property(nonatomic, strong) GADInterstitial *interstitial;
@property (strong, nonatomic) GADRequest *request;
@end
@implementation adInterstitial
from __future__ import annotations
from typing import Optional
from kivy import platform
class SingletonMeta(type):
_instance: Optional[Singleton] = None
def __call__(self) -> Singleton:
@dbrova15
dbrova15 / GPIO
Created March 18, 2018 19:12
GPIO
import RPi.GPIO as GPIO
from time import sleep
import os
from display import show_text
foo_top = None
foo_middle = None
foo_down = None