Skip to content

Instantly share code, notes, and snippets.

@jannecederberg
jannecederberg / formspree.html
Last active November 4, 2022 12:26 — forked from manfromanotherland/formspree.html
JS: Ajax send forms using the most excellent Formspree » http://formspree.io #snippet
<form id="contact-form" action="//formspree.io/[email protected]" method="post">
<input type="text" name="Name" placeholder="Name" required>
<input type="email" name="Email" placeholder="Email" required>
<textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea>
<!-- CONFIG -->
<input class="is-hidden" type="text" name="_gotcha">
<input type="hidden" name="_subject" value="Subject">
<input type="hidden" name="_cc" value="[email protected]">
<!-- /CONFIG -->
<input class="submit" type="submit" value="Send">
@darrenmothersele
darrenmothersele / ssr-web-components.txt
Created November 27, 2019 07:55
Server side rendering of web components (ssr, custom elements, shadow dom)
Possible approaches to rendering web components on the server...
Server side DOM library (JSDOM alternative) that supports custom elements:
https://www.npmjs.com/package/happy-dom
https://medium.com/@treshugart/%C3%A5server-side-rendering-web-components-e5df705f3f48
Approach is based on this zip:
https://gist.github.com/justinfagnani/936791248120749ff1f8188f1f4064d9
Share a template between client side code and server side code:
@coolaj86
coolaj86 / MacOS-Icons.md
Last active April 12, 2025 09:20
MacOS Default Icons Locations

How to Find ANY Icon

  1. Open the application such that you see the icon on your screen.
  2. Open Activity Monitor
  3. Double click the name of the application (i.e. Finder or System Preferences)
  4. Select "Open Files and Ports"
  5. Copy the output to a file and then grep for .icns

Similarly you could run this command, but it may take several minutes to complete:

@davidbwaters
davidbwaters / horizontal-website.markdown
Created September 28, 2020 21:08
Horizontal Website