Skip to content

Instantly share code, notes, and snippets.

View yspreen's full-sized avatar
🦆
Working

Nick Spreen yspreen

🦆
Working
View GitHub Profile
@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
@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
<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 () {
<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 {
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)
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
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
@yspreen
yspreen / recorder.py
Created March 23, 2021 23:50
PyQt Recorder
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
This file has been truncated, but you can view the full file.
[10:55:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[10:55:02] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[10:55:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[10:55:02] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2854 for Minecraft 1.12.2 loading
[10:55:02] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_275, running on Linux:amd64:5.4.0-64-generic, installed at /usr/lib/jvm/java-8-openjdk-amd64/jre
[10:55:03] [main/INFO] [FML]: Searching /root/aboe/./mods for mods
[10:55:03] [main/INFO] [FML]: Searching /root/aboe/./mods/1.12.2 for mods
[10:55:03] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in AppleCore-mc1.12.2-3.4.0.jar. This is not recommended, @Mods should be in a separate jar from the coremod.
[10:55:03] [main/WARN] [FML]: The coremod AppleCore (squeek.applec
---- Minecraft Crash Report ----
// Why is it breaking :(
Time: 2021-01-29 11:14:43 UTC
Description: Watching Server
java.lang.Error: ServerHangWatchdog detected that a single server tick took 60.00 seconds (should be max 0.05)
at net.minecraft.world.World.isOutsideBuildHeight(World.java:225)
at net.minecraft.world.World.getBlockState(World.java:905)
at ivorius.reccomplex.world.gen.feature.structure.generic.transformers.TransformerNaturalAir.lambda$null$4(TransformerNaturalAir.java:126)