Skip to content

Instantly share code, notes, and snippets.

View nlfiedler's full-sized avatar

Nathan Fiedler nlfiedler

View GitHub Profile
@nlfiedler
nlfiedler / gist:ad2a7c8da3f07acff6efa6c328e7dcbe
Created January 13, 2025 16:36
Output of npm ci on Windows 11
PS C:\Users\nlfie\Downloads\helix-authentication-service-2024.2.1\helix-authentication-service-2024.2.1> npm ci --omit=dev --omit=optional
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
added 346 packages, and audited 347 packages in 4s
44 packages are looking for funding
run `npm fund` for details
@nlfiedler
nlfiedler / gist:2af5814091fa3087f1200314147f6b7b
Last active December 14, 2024 19:01
nav bar with reactive tracking error
use crate::preso::leptos::get_count;
use leptos::html::Div;
use leptos::prelude::*;
use leptos_use::{
on_click_outside, use_color_mode_with_options, ColorMode, UseColorModeOptions,
UseColorModeReturn,
};
#[component]
pub fn NavBar() -> impl IntoView {
@nlfiedler
nlfiedler / ExtUtils.lua
Last active March 19, 2021 17:03
ExtUtils.lua with debugging for group-based skipping
--[[
Copyright 2020 Perforce Software
]]--
local ExtUtils = {}
local cjson = require "cjson"
function getManifest()
local fn = Helix.Core.Server.GetArchDirFileName( "manifest.json" )
local fh = assert( io.open( fn, "r" ) )
local m = cjson.decode( fh:read( "*all" ) )
@nlfiedler
nlfiedler / Upload.re
Created November 4, 2018 01:57
ReasonML GraphQL Apollo upload file example
module UploadAsset = [%graphql
{|
mutation Upload($file: Upload!) {
upload(file: $file)
}
|}
];
module UploadAssetMutation = ReasonApollo.CreateMutation(UploadAsset);