Skip to content

Instantly share code, notes, and snippets.

View jimmynotjim's full-sized avatar
☀️
Enjoying SoCal "Fall"

Jimmy Wilson jimmynotjim

☀️
Enjoying SoCal "Fall"
View GitHub Profile
@jimmynotjim
jimmynotjim / privacy_policy.md
Created December 10, 2025 19:18
Fire Risk iOS Privacy Policy

Privacy Policy

Effective Date: December 8, 2025

Last Updated: December 8, 2025

Thank you for using Fire Risk. We take your privacy seriously and are committed to being transparent about how we collect, use, and protect your information.

1. Information We Collect

@jimmynotjim
jimmynotjim / zindex.js
Created October 9, 2025 16:07
Highlight z-index to find layering bugs
// Drop this in the console and highlight all the elements with a defined z-index.
// Helpful for debugging z-index issues.
function highlightElementsWithZIndex() {
const allElements = document.querySelectorAll('*');
allElements.forEach(element => {
const zIndex = window.getComputedStyle(element).zIndex;
// Check if z-index is explicitly set and is a valid number (not "auto")
@jimmynotjim
jimmynotjim / machine.js
Created January 30, 2023 21:07
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@jimmynotjim
jimmynotjim / machine.js
Last active May 26, 2020 23:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@jimmynotjim
jimmynotjim / machine.js
Last active May 28, 2020 19:54
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
<html lang="en"><head>
<meta charset="UTF-8">
</head>
<body translate="no">
<svg class="icon" aria-hidden="true" focusable="false">
<use href="https://gist.githubusercontent.com/jimmynotjim/7db36b6dd79703c0e79b6882fd327e26/raw/208b5a594f352a703a1178cae335a2d4deb8a5da/test.svg#payment-logo-JCB" xlink:href="https://gist.githubusercontent.com/jimmynotjim/7db36b6dd79703c0e79b6882fd327e26/raw/208b5a594f352a703a1178cae335a2d4deb8a5da/test.svg#payment-logo-JCB"></use>
</svg>
</body></html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Go to Settings > General > Accessibility. At the very end of this screen, choose the Accessibility Shortcut option. Choose the following items on the next screen:

screen shot 2018-07-24 at 12 25 06 pm

Now, by quickly triple-tapping the Home button, you will be presented with a menu of these options to enable or disable. (Note: whenever VoiceOver is active, you have to first single-tap to select a menu item and then double-tap the item to actually choose it.)

@jimmynotjim
jimmynotjim / ultimate-ut-cheat-sheet.md
Created May 9, 2018 16:44 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@jimmynotjim
jimmynotjim / extend.js
Created April 18, 2018 01:20 — forked from cferdinandi/extend.js
A native JS extend() function.
/**
* Merge defaults with user options
* @private
* @param {Object} defaults Default settings
* @param {Object} options User options
* @returns {Object} Merged values of defaults and options
*/
var extend = function ( defaults, options ) {
var extended = {};
var prop;