Skip to content

Instantly share code, notes, and snippets.

@spryzone
spryzone / password-manager-ignore.md
Last active January 29, 2026 14:35
HTML input attributes to tell a password manager to ignore the field. Please suggest improvements in the comments.
export const passwordManagerIgnore = {
    autocomplete: "off",
    "data-1p-ignore": true, // 1Password
    "data-lpignore": "true", // LastPass
    "data-protonpass-ignore": "true", // ProtonPass
    "data-bwignore": "1", // Bitwarden
};

createMemberProfile.ts

import type { JazzAccount } from "@/schema/account";
import { MemberProfile } from "@/schema/members";
import { LocationFeed } from "@/schema/location";
import type { Team } from "@/schema/teams";

export const createMemberProfile = (
	member: JazzAccount,
	team: Team,
@spryzone
spryzone / ClientContext.tsx
Created November 22, 2023 23:19
SolidJS / DXOS reactivity issue
import { Client } from '@dxos/client';
import { JSX, createContext, createEffect, createMemo, createSignal, onMount } from 'solid-js';
import { EchoDatabase, Space } from '@dxos/client/echo';
import { Identity } from '@dxos/client/halo';
import { types } from '../../../schema';
import { SystemStatus } from '@dxos/client/services';
type ClientProviderProps = {
children: JSX.Element;
@spryzone
spryzone / MarkdownMaterialUi.js
Last active November 27, 2020 03:40
A reusable component to take a Markdown string as props, and render Material UI. This component can help ensure consistency across your application between your Markdown documents and other Material UI components. No CSS or other files required - everything is in this one reusable component.
// A reusable component to take a Markdown string as props, and render Material UI.
// This component can help ensure consistency across your application between your Markdown documents and other Material UI components.
// No CSS or other files required - everything is in this one reusable component.
// Usage:
// import React from 'react'
// import MarkdownMaterialUi from '../mycomponents/MarkdownMaterialUi'
// import MyDocument from '../mydocuments/MyDocument.md'
// function RenderMarkdown() {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/** @format */
import React, {PureComponent} from 'react';
import {firestoreConnect} from 'react-redux-firebase';
import {connect} from 'react-redux';
import {compose} from 'redux';
import moment from 'moment'
class FlightList extends PureComponent {
render() {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"array": [
1,
2,
3
],
"boolean": true,
"null": null,
"number": 123,
"object": {