Skip to content

Instantly share code, notes, and snippets.

View mattdanielbrown's full-sized avatar

Matt Daniel Brown mattdanielbrown

View GitHub Profile
@mattdanielbrown
mattdanielbrown / google-gemini-chatbot-z5-code.markdown
Created October 20, 2025 12:10
Google Gemini Chatbot | Z5 CODE
@mattdanielbrown
mattdanielbrown / index.html
Created June 3, 2025 22:10
Typescale Calculator with Clamp
<div class="wrap">
<aside>
<h1>Typescale Calculator <br> with Clamp</h1>
<div class="controls">
<div class="control-group">
<label for="baseSize">Base Font Size (rem):</label>
<input type="number" id="baseSize" value="1" step="0.01" min="0.5" max="2">
</div>
@mattdanielbrown
mattdanielbrown / llmfeed.sh
Created March 24, 2025 17:17 — forked from fweig/llmfeed.sh
Copy repositories to make them easily digestable for LLMs.
#!/bin/bash
# llmfeed.sh - Copy repository contents to make them easily digestable for LLMs
#
# Author: Felix Weiglhofer
# License: MIT
#
# Description:
# Flattens the (text) content of a repository into a single string that can be
# easily read by LLMs. Inspired by uithub.com.
#
@mattdanielbrown
mattdanielbrown / index.html
Created March 24, 2025 17:16
Input pattern testing
<div id="app">
<input ref="input" :type="this.type" :pattern="this.pattern" tabindex="0" placeholder="Input goes here">
<p class="message"></p>
<span class="code tag" title="Edit pattern to test">&lt;input&nbsp;<span class="code attribute">type&#61;&quot;<span class="code value">text</span>&quot;</span>&nbsp;<span class="code attribute">pattern&#61;&quot;<span ref="pattern" contenteditable="true" tabindex="0" class="code value pattern" v-model="pattern" @input="this.setPattern">&nbsp;e.g. [a-z]{3}&nbsp;</span>&quot;</span>&gt;</span>
</div>
  • SC1000 $ is not used specially and should therefore be escaped.
  • SC1001 This \o will be a regular 'o' in this context.
  • SC1003 Want to escape a single quote? echo 'This is how it'\''s done'.
  • SC1004 This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
  • SC1007 Remove space after = if trying to assign a value (or for empty string, use var='' ... ).
  • SC1008 This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify.
  • SC1009 The mentioned parser error was in ...
  • SC1010 Use semicolo
@mattdanielbrown
mattdanielbrown / index.html
Created June 23, 2024 15:32
Time picker with dynamic clock
<div class="inpTime">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 4V7" id="hourHand"/>
<path d="M7 2.5V7" id="minHand"/>
</svg>
<input type="time" value="09:41" id="timeInput">
</div>
@mattdanielbrown
mattdanielbrown / index.html
Created June 8, 2024 01:03
Transition Delay Mixin
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
@mattdanielbrown
mattdanielbrown / index.html
Created June 8, 2024 01:00
Singing Text To Speech
<menu>
<h1></h1>
</menu>
<main>
<ul class="words">
<div class="slider">
<li class="word">
<div class="position">
<input class="string" type="text" value="daisy">
</div>
@mattdanielbrown
mattdanielbrown / index.html
Created May 25, 2024 00:17
Javascript Asynchronous Functions : Promisified Functions (with `catch() ` )
<!-- Result is just pen's the output of
Javascript Console content in
effectively in fullscreen mode -->