Skip to content

Instantly share code, notes, and snippets.

View yspreen's full-sized avatar
🦆
Working

Nick Spreen yspreen

🦆
Working
View GitHub Profile
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
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
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)
<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 {
<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 () {
@yspreen
yspreen / clean-gcr.sh
Last active July 9, 2021 13:00
GCR Cleaner for GitHub Actions
#!/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
@yspreen
yspreen / Image+Trim.swift
Created July 14, 2021 12:03 — forked from chriszielinski/Image+Trim.swift
[Swift 5] NSImage/UIImage Crop/Trim Transparency
// 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
//
// URLDigest.swift
//
// Created by Yannick Spreen on 7/31/21.
//
import Foundation
import CommonCrypto
class URLDigest {
@yspreen
yspreen / adobe-fix.sh
Created August 4, 2021 09:00
Fix adobe xd install
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"
#!/bin/bash
## Use as ./convert_all.sh [DIRECTORY]
##
## i.e. ./convert_all.sh ~/Downloads
download_file() {
bash AAXtoMP3 --aac -c -e:m4b -t "./out" "$1"
}