I hereby claim:
- I am ali1234 on github.
- I am ali1234 (https://keybase.io/ali1234) on keybase.
- I have a public key whose fingerprint is ADFD E886 043E 00DA F5ED 052C 4B13 38E2 0316 1411
To claim this, I am signing this object:
import sys | |
import sdl2 | |
import sdl2.ext | |
import numpy as np | |
class Life(object): | |
def __init__(self, height, width): | |
self.width = width |
#!/usr/bin/env python3 | |
import sys | |
import pathlib | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
if __name__ == '__main__': |
# set up a python virtualenv: | |
virtualenv --system-site-packages -p python3 google-assistant-sdk | |
# enter the virtualenv: | |
source google-assistant-sdk/bin/activate | |
# install dependencies: | |
pip3 install google-assistant-sdk[auth_helpers]==0.1.0 grpc-google-cloud-speech-v1beta1==0.14.0 protobuf==3.1.0 | |
# the google code actually works out of the box on a default ubuntu install: |
#!/bin/bash | |
SECONDS=0 | |
"$@" | |
e=$? | |
if [ $? -eq 0 ]; then | |
RESULT="Succeeded" |
I hereby claim:
To claim this, I am signing this object:
// Tearing test | |
#include "32blit.hpp" | |
uint16_t width = 160; | |
uint16_t height = 120; | |
uint32_t prev_buttons = blit::buttons; | |
void init(void) { | |
blit::set_screen_mode(blit::lores); |
// Update test | |
#include <unistd.h> | |
#include "32blit.hpp" | |
#include "../../../../../../usr/include/zconf.h" | |
uint16_t width = 160; | |
uint16_t height = 120; | |
uint32_t prev_buttons = blit::buttons; |
// Tearing test | |
#include "32blit.hpp" | |
uint16_t width = 160; | |
uint16_t height = 120; | |
uint32_t prev_buttons = blit::buttons; | |
uint32_t updates = 0; |
#!/usr/bin/env python | |
# BB-8 Python driver by Alistair Buxton <a.j.buxton@gmail.com> | |
from bluepy import btle | |
import time | |
class BB8(btle.DefaultDelegate): | |
def __init__(self, deviceAddress): |
import click | |
import pyudev | |
import socket | |
import serial | |
import serial.threaded | |
class Worker(serial.threaded.Protocol): | |
def __init__(self, socket): | |
self.socket = socket |