Skip to content

Instantly share code, notes, and snippets.

View mattdanielbrown's full-sized avatar

Matt Daniel Brown mattdanielbrown

View GitHub Profile
@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 -->

A map of the sky that uses an azimuthal equidistant projection with star data. Longitudes and latitudes for the geo projection are obtained from declination and right ascension respectively (longitude is also inverted, because, unlike the earth globe, the celestial sphere is seen from the inside).

The boreal (northern) sky is shown at left, while the austral (southern) at right. Because right ascension is given in hours, both maps are divided in 24 slices. A circle is shown every 10 degrees of declination.

Star size indicates magnitude. Bigger circles depict brighter stars.