Skip to content

Instantly share code, notes, and snippets.

Avatar
🦆
Working

Yannick Spreen yspreen

🦆
Working
View GitHub Profile
@yspreen
yspreen / adobe-fix.sh
Created Aug 4, 2021
Fix adobe xd install
View adobe-fix.sh
sudo rm -rf "~/Library/Application Support/Adobe"
sudo rm -rf "~/Library/Preferences/Adobe"
sudo rm -rf "~/Library/Logs/Adobe"
sudo rm -rf "~/Library/Caches/Adobe"
sudo rm -rf "/Library/Application Support/Adobe"
sudo rm -rf "/Library/Preferences/Adobe"
sudo rm -rf "/Library/Logs/Adobe"
sudo rm -rf "/Library/Caches/Adobe"
View URLDigest.swift
//
// URLDigest.swift
//
// Created by Yannick Spreen on 7/31/21.
//
import Foundation
import CommonCrypto
class URLDigest {
@yspreen
yspreen / Image+Trim.swift
Created Jul 14, 2021 — forked from chriszielinski/Image+Trim.swift
[Swift 5] NSImage/UIImage Crop/Trim Transparency
View Image+Trim.swift
// Image+Trim.swift
//
// Copyright © 2020 Christopher Zielinski.
// https://gist.github.com/chriszielinski/aec9a2f2ba54745dc715dd55f5718177
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@yspreen
yspreen / clean-gcr.sh
Last active Jul 9, 2021
GCR Cleaner for GitHub Actions
View clean-gcr.sh
#!/bin/bash
# To run in github actions, put this script in your repo, set your secrets, and add to your yaml:
#
# - name: Build and push image
# run: |
# echo '${{ secrets.JSON_KEY }}' | docker login -u _json_key --password-stdin https://"${{ secrets.HOSTNAME }}";
# docker build . -t "${{ secrets.IMAGE }}";
# docker push "${{ secrets.IMAGE }}";
# - name: Clean GCR
View gist:be5b026e7be5993d5025606d1860fa3b
<script>
/*
https://firebasestorage.googleapis.com/v0/b/heroic-tide-314615.appspot.com/o/3D%20Mockup%201.gif?alt=media&token=0ea6b519-d3e9-442d-8722-22dd59a96786
https://firebasestorage.googleapis.com/v0/b/heroic-tide-314615.appspot.com/o/3D%20Mockup%202.gif?alt=media&token=b177324b-45c9-4b84-b85d-5f32f2e0ea20
https://firebasestorage.googleapis.com/v0/b/heroic-tide-314615.appspot.com/o/3D%20Mockup%203.gif?alt=media&token=6528137f-cf32-4125-9469-d6ea4fb8ae10
*/
function updateAnimations() {
$(".video").each(function () {
View gist:0a364f9fbd4df07f8bf1fd80b1236402
<script>
function updateAnimations() {
$(".video").each(function () {
if (
this.getBoundingClientRect().top <= window.innerHeight &&
this.getBoundingClientRect().bottom >= 0
) {
this.classList.add("scrolled-in");
this.classList.remove("scrolled-out");
} else {
View test-log.txt
Test Suite 'Selected tests' started at 2021-05-16 16:51:31.623
Test Suite 'project-for-testingTests.xctest' started at 2021-05-16 16:51:31.624
Test Suite 'SwiftDGCTests' started at 2021-05-16 16:51:31.625
Test Case '-[project_for_testingTests.SwiftDGCTests testCases]' started.
Testing AT
Testing BG
Testing CY
Testing DK
SwiftDGCTests.swift:123: error: -[project_for_testingTests.SwiftDGCTests testCases] : XCTAssertTrue failed - unexpected cbor err for 1.json (DGC with vaccine certificate entry)
SwiftDGCTests.swift:123: error: -[project_for_testingTests.SwiftDGCTests testCases] : XCTAssertTrue failed - unexpected cbor err for 2.json (DGC with PCR test certificate entry)
View gist:01ccb6469875316cc323ebad726a3df5
This video shows our current UI:
https://youtu.be/rdmfbVtEoZg
- Launch screen with Face Scan
- Scanning view with fullscreen scanner
- Valid Cert
- Invalid Cert
Cert comprises:
Type, Name, Identifying Info, DOB, Validity
View log.txt
ERRORS
'format' validation of 'date' is not yet supported.
'format' validation of 'date' is not yet supported.
'PPN' is not a valid enumeration value of '[PP, NN, CZ, HC]'
Required property 'c' is missing
'format' validation of 'date' is not yet supported.
Required property 'v' is missing
Required property 'dgcid' is missing
HEADER
View recorder.py
import time
import qtawesome as qta
import gseos_qt.globalvars as glob
import copy
import pickle
import gzip
import os
from typing import *
from datetime import datetime
from PyQt5.uic import loadUi