Skip to content

Instantly share code, notes, and snippets.

View PixelPartner's full-sized avatar
💭
Who wants his products configured directly in AR?

Thomas Kumlehn PixelPartner

💭
Who wants his products configured directly in AR?
View GitHub Profile
@PixelPartner
PixelPartner / allow-ar3d-in-wordpress-media-library.php
Last active November 11, 2021 10:06 — forked from alexmoise/allow-usdz-in-wordpress-media-library.php
A plugin that makes it possible to upload Apple AR Quick Look files (.usdz + .reality) and glTF-binary (.glb) in WordPress Media Manager
<?php
/**
* Plugin Name: Allow GLB, USDZ and Reality mime in Wordpress Media Library
* Plugin URI: https://gist.github.com/PixelPartner/d3362a9fad57165ba9d5bd76a3f5b4ee
* Description: A plugin that makes it possible to upload AR files in Media Manager. Don't forget to add the three MIME types in web server config if necessary! No settings necessary, just activate and upload USDZ files in media library as usually. Tested with WP 5.2.3
* Version: 1.0.0
* Author: Thomas Kumlehn
* Author URI: https://config-xr.mobi
*/
@PixelPartner
PixelPartner / vaccination-stats.js
Last active December 30, 2020 14:18 — forked from marco79cgn/vaccination-stats.js
A Scriptable widget that shows the amount of people who have received the corona vaccination in Germany
const cacheMinutes = 60 // 60 min
const today = new Date();
let result
let widget = new ListWidget()
widget.setPadding(8, 8, 8, 8)
widget.url = "https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Daten/Impfquoten-Tab.html"
await getNumbers()
await createWidget()
Script.setWidget(widget)