Skip to content

Instantly share code, notes, and snippets.

View clamstew's full-sized avatar
🧘
🎨 🤖 🚀 vibe-coding 24/7. Let's Go!

Clay Stewart clamstew

🧘
🎨 🤖 🚀 vibe-coding 24/7. Let's Go!
View GitHub Profile
@clamstew
clamstew / MM to Host Music Lecture Series.md
Last active January 21, 2019 02:39
Mountain Top Musicians Content

By Andrew Cotten, Staff Writer, The Sewanee Purple

Published: Sunday, November 1, 2009 Updated: Wednesday, November 11, 2009 20:11 See original article in November 2009 Sewanee Purple

Come and join the Mountaintop Musicians for the first installment of their annual Music Lecture Series featuring Dave Gallaher of Microwave Dave and the Nukes on Monday, November 2nd, at 7:00 in Gailor Auditorium. The lecture is entitled: “It’s The Blues.” This lecture will include a seminar on various aspects of the Blues, a performance, and an extensive Q and A session. For more information on Microwave Dave and his many musical achievements please visit his website:

Microwavedave.com

@clamstew
clamstew / Portfolio.md
Created January 21, 2019 02:13
Claystewart.me Content

Portfolio Items

@clamstew
clamstew / blog_from_claystewart_me_wordpressetup.md
Last active January 21, 2019 02:55
WordPress: Installing in a sub-directory off of the root

I’ve primarily started this blog as a place to put insights I have as I move through the world of programming. So there is no better place to start than my most recent insite when installing this blog: how to install WordPress on a subdirectory.

Many times in the past, I would just upload the WordPress.org files onto the root of the directory I’m pointing the Domain Name to on the server, but this is a terrible idea and bad for flexibility.

I found this page on the WordPress Codex about installing the subdirectory. The instructions under the heading Using a pre-existing subdirectory install worked like a charm. I’ve copied them below.

If you already have WordPress installed in its own folder (e.g., http://example.com/wordpress), then the steps are as follows:

  1. Go to the General panel.
  2. In the box for Site address (URL): change the address to the root directory’s URL. Example: http://example.com
@clamstew
clamstew / index.md
Created January 14, 2019 22:03
Slack Dark mode
@clamstew
clamstew / MyPortal.jsx
Last active November 13, 2018 18:52
React tooltip using portals (from https://codepen.io/davidgilbertson/pen/ooXVyw)
class MyPortal extends React.PureComponent {
constructor(props) {
super(props);
this.el = document.createElement('div');
}
componentDidMount() {
document.body.appendChild(this.el);
}
@clamstew
clamstew / ReactHooks.code-snippets
Created November 4, 2018 18:59 — forked from antmdvs/ReactHooks.code-snippets
Snippet for React *EXPERIMENTAL* `useState()` hook -- See https://reactjs.org/hooks
{
"Use State": {
"prefix": "us",
"scope": "javascript,javascriptreact,typescript,typescriptreact",
"body": [
"const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState($2);",
"$0"
],
"description": "(EXPERIMENTAL) React: Use State. See https://reactjs.org/hooks"
}
<html>
<body>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<body>
</html>
@clamstew
clamstew / workbox.md
Created September 30, 2018 15:06 — forked from addyosmani/workbox.md
Workbox recipes

Workbox runtime caching recipes

Your Service Worker script will need to import in Workbox and initialize it before calling any of the routes documented in this write-up, similar to the below:

importScripts('workbox-sw.prod.v1.3.0.js');
const workbox = new WorkboxSW();

// Placeholder array populated automatically by workboxBuild.injectManifest()
@clamstew
clamstew / LICENSE.txt
Created August 6, 2018 17:20 — forked from dciccale/LICENSE.txt
Detect if Flash Player is installed in your browser (120bytes)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Denis Ciccale <http://webdecs.wordpress.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@clamstew
clamstew / GIF-Screencast-OSX.md
Created October 24, 2017 16:33 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: