Skip to content

Instantly share code, notes, and snippets.

View radiovisual's full-sized avatar
😬
Hello

Michael Wuergler radiovisual

😬
Hello
  • UBS
  • Switzerland
View GitHub Profile
@radiovisual
radiovisual / .eslintrc
Last active September 18, 2025 07:55
React Native AirBnB ESLint Config
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
// utils/RobustPortal.tsx
import { createPortal } from 'react-dom';
import React, { useContext, createContext, useState, useEffect, useCallback, useRef } from 'react';
// Enhanced portal context with timing guarantees
interface ProcessWrapperPortalContextType {
registerPortal: (portalId: string, element: HTMLElement | null) => void;
isPortalReady: (portalId: string) => boolean;
getPortalElement: (portalId: string) => HTMLElement | null;
portalReadyStates: Map<string, boolean>;

Keybase proof

I hereby claim:

  • I am radiovisual on github.
  • I am mwuerg (https://keybase.io/mwuerg) on keybase.
  • I have a public key ASDWaAC8O2kc_AWXvmQZmWCMzHRKtX8O3mrLOvOBt8RE0wo

To claim this, I am signing this object:

chrome.declarativeNetRequest
Description
The chrome.declarativeNetRequest API is used to block or modify network requests by specifying declarative rules. This lets extensions modify network requests without intercepting them and viewing their content, thus providing more privacy.
Permissions
declarativeNetRequest
declarativeNetRequestWithHostAccess
declarativeNetRequestFeedback
host permissions
One or more of these permissions triggers a warning.
#!/usr/bin/env ts-node
import parseArguments from 'yargs-parser';
import { getSendGridTemplateIdsForSendGridSubUser, renderMJMLHandlebarsMarkupFromTemplateName } from '../../helpers/templates';
import { fetchTemplateById } from './sendgrid-client';
import { getActiveVersionHTMLContent, getChecksum } from './sendgrid-utils';
import path from 'path';
const argv = parseArguments(process.argv.slice(2));
PImage imageMask;
ArrayList<ArrayList<PVector>> polygons;
final int MAX_RECURSION_DEPTH = 1000;
void setup() {
size(512, 512);
imageMask = loadImage("imageMask.png");
// Create an empty array to store the polygons
// Substrate Watercolor
// j.tarbell June, 2004
// Albuquerque, New Mexico
// complexification.net
// Processing 0085 Beta syntax update
// j.tarbell April, 2005
int dimx = 900;
int dimy = 900;
@radiovisual
radiovisual / README.md
Last active December 21, 2022 10:09
TypeScript Error Message Handling
@radiovisual
radiovisual / custom-wordpress-gallery-output.php
Last active September 27, 2022 04:44
Create custom wordpress gallery output
@radiovisual
radiovisual / OpenMobileMenu-DisableBGScroll.js
Last active December 6, 2019 03:31
Open your Mobile Menus and Disable Background Scrolling
$(document).ready(function() {
function closeMobileMenu() {
var mobileContent = $("#mobile_menu_content");
// now `unlock` the body contents and put things back to
// normal before fading out the mobile menu.
var bodyTemp = $('.body_temp');
var scrolltop = Math.abs(bodyTemp.position().top);