Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am altendky on github.
  • I am altendky ( on keybase.
  • I have a public key ASA_drgu9N-abY6fC8HHP6DYap-78QZxqF_L_jVowd-SOwo

To claim this, I am signing this object:

import csv
import math
import gidgethub.httpx
import httpx
import trio
import asyncclick as click
STARGAZAERS = """query StargazersCount($owner: String!, $name: String!, $after: String = null)
View gist:2390b459ae2ce853beae1a075f2c414b
altendky@p1:~$ mkdir tmp
mkdir: cannot create directory ‘tmp’: File exists
altendky@p1:~$ rm -rf tmp
altendky@p1:~$ mkdir tmp
altendky@p1:~$ cd tmp
altendky@p1:~/tmp$ git clone
Cloning into 'aqtinstall'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (6/6), done.
View gist:46f3276dd809cdff47b0b31b77b0e2cc
~   master ●  python3.8
Traceback (most recent call last):
File "", line 3, in <module>
import pylib.preferences as pref
ModuleNotFoundError: No module named 'pylib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 7, in <module>
from . import google
dispatch = {
'google': google.validate
def get_profile_for_token(client_ids, platform, token):
if platform == 'google' and platform in client_ids:
View gist:7a488870120ede4a6eccfd612d94b4df
event is a custom object defined above
buttons = re.findall(r"text='([-\w ]*)'", event.stringify(), re.MULTILINE)
for number in buttons:
if number == " " or number == "View pokemon":
last_request = functools.partial(, text=number)
def main_function(list_goes_here, deal_status): #This is the main search function in selenium. It will search for items in the browser
all_windows = driver.window_handles #and put successes into one bin, missing into another, and FUBAR ones into a third
for item in list_goes_here: #Use on the segmented list of old invoices first, then work procedurally through all cases
holder = hyphen_split(item)
epoch2stat = {
key: val
for key, val in iteritems({
k: tuple(
(lambda stats: stats)(
tuple(imap(itemgetter(1), v))
for k, v in groupby(sorted(
View untitled.ui
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<widget class="QWidget" name="Form">
<property name="geometry">
# coding: utf-8
from datetime import datetime
from time import sleep
from psycopg2 import connect, OperationalError
connected = False
while not connected: