Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓

Harald Reingruber haraldreingruber

🤓
View GitHub Profile
@franzenzenhofer
franzenzenhofer / minimal-user-interaction.js
Last active Mar 31, 2021
minimal-user-interaction Google Tag Manager Tag
View minimal-user-interaction.js
<script>
var mui = function()
{
var fired = false;
var kickTrigger = function()
{
if(fired === true){return false;}
//console.log("miniumal-user-interaction");
dataLayer.push({'minimal-user-interaction': true});
View bosear_hubs.js
// from https://github.com/zakaton/Bose-Frames-Web-SDK
var lib = "https://hubs-bose-js.glitch.me/script.js"
// TODO if CSP is disabled
// if not send warning with Firefox about:config setting security.csp.enable to false
if (!tools) { // mostly there for live testing
var tools = document.createElement("script")
tools.setAttribute("src", lib)
document.head.appendChild(tools)
tools.onload = readyScript
View hubs_avatar_chest_webcam.js
/* How to use this script :
To play with it "as is" try it in the console of your browser first.
If you do like and want to make it permanent then a bit of UI integration is needed
(e.g. could add an icon, chat command, etc).
That would be done by using https://hubs.mozilla.com/docs/hubs-cloud-custom-clients.html
So that your integration remains easy to merge and maintainable over time it is recommended to
touch Hubs Cloud code itself as little as possible. For example having separate components for
@schmonz
schmonz / conferences2021.md
Last active Sep 3, 2020
2021 conferences of interest
View conferences2021.md

(Last year's list)

2021: Attended

Start End Place Event CFP

2021: Will Attend

| Start | End | Place | Event | CFP |

@mbleigh
mbleigh / README.md
Last active Sep 25, 2020
Automate the deletion of old Firebase Hosting versions.
View README.md

Firebase Hosting Version Cleanup

This is a simple utility script for cleaning up Firebase Hosting versions, leaving a specified number of versions remaining. This is primarily done to conserve storage usage, but may have other uses.

USE AT YOUR OWN RISK. NO WARRANTY IS PROVIDED. THIS SCRIPT DOES DELETE STUFF PERMANENTLY

Usage

node cleanupVersions.js <site_name> <versions_to_keep> [commit]
@mscottford
mscottford / README.md
Last active Mar 26, 2021
Git Churn command
View README.md

Instructions for running on Windows 10 (via Ubuntu Bash)

  1. Open Ubuntu bash environment shell
  2. Install dependencies
    sudo apt-get update
    sudo apt-get install git curl
    
  3. Create bin directory in your home folder
@chuckbergeron
chuckbergeron / CompileTime.cs
Created Dec 20, 2017
Unity Measure Compile Time
View CompileTime.cs
# // Originally found here: https://answers.unity.com/questions/1131497/how-to-measure-the-amount-of-time-it-takes-for-uni.html
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
class CompileTime : EditorWindow
{
static bool isTrackingTime;
static double startTime;