Skip to content

Instantly share code, notes, and snippets.

View popdemtech's full-sized avatar

Popular Demand Technology popdemtech

View GitHub Profile
@popdemtech
popdemtech / emojis.json
Created May 2, 2024 08:39
a json object of emojis and encodeURI(emoji)
[
{
"emoji": "💯",
"name": "hundred-points",
"URI": "%F0%9F%92%AF"
},
{
"emoji": "🔠",
"name": "input-latin-uppercase",
"URI": "%F0%9F%94%A0"
@popdemtech
popdemtech / index.html
Created March 23, 2024 09:37
Distributable application using web technologies
<p>this is a page with a link to the other page</p>
<a href="other.html">other page</a>
<p>there is a javascript added which increments this number</p>
<div id="number">0</div>
<script src="js.js"></script>
@popdemtech
popdemtech / acim.json
Last active May 1, 2024 20:50
Open Source A Course in Miracles Workbook Lessons as JSON. Content public domain. License ABL.
[
{
"slug": "introduction-1",
"title": "Introduction to Part 1",
"section_type": "introduction",
"number": "1",
"sort_order": 0,
"content": "<p>A theoretical foundation such as the <i>A Course in Miracles</i> text is necessary as a background to make these exercises meaningful, yet it is the exercises which will make the goal possible. An untrained mind can accomplish nothing. It is the purpose of these exercises to train the mind to think along the lines which the course sets forth.</p>\n<p>The exercises are very simple. They do not require more than a few minutes, and it does not matter where or when you do them. They need no preparation. They are numbered, running from 1 to 365. The training period is one year. Do not undertake more than one exercise a day.</p>\n<p>The purpose of these exercises is to train the mind to a different perception of everything in the world. The workbook is divided into two sections, the first dealing with the undoing of what you see now and the second
<!-- clock -->
<h3>Clock</h3>
<div class="clock">
<div class="clock-face">
<div class="hand hour-hand"></div>
<div class="hand minute-hand"></div>
<div class="hand second-hand"></div>
</div>
<div class="pip"></div>
</div>
@popdemtech
popdemtech / quotes.json
Created February 23, 2023 03:55
196 Quotable Sayings
[
"Why should we build our happiness on the opinons of others, when we can find it in our own hearts?",
"Happiness is part of who we are. Joy is the feeling",
"Happiness depends on being free, and freedom depends on being courageous.",
"There are two ways to be happy: improve your reality, or lower your expectations.",
"I don't think that there are any limits to how excellent we could make life seem.",
"A large income is the best recipe for happiness I ever heard of.",
"If more of us valued food and cheer and song above hoarded gold, it would be a merrier world.",
"The problem with people is they forget that most of the time it's the small things that count.",
"And I can't be running back and fourth forever between grief and high delight.",
@popdemtech
popdemtech / tweets-to-json.js
Created February 23, 2023 03:52
Getting my user-generated content from a social media platform after they revoked API access
// Tweets to JSON
// Capture tweets as they load into a parent container `temp1`
// `temp1` must be set by a human (right-click, inspect, find parent container of the tweets, right click html element, set as global variable)
// var quotes = [];
// temp1.querySelectorAll('[data-testid=tweetText]').forEach((t) => {
// quotes.push(t.firstChild.textContent.trim()); });
// var observer = new WebKitMutationObserver(function(mutations) {
// mutations.forEach(function(mutation) {
// for(var i = 0; i < mutation.addedNodes.length; i++) {
{
"black": {
"rgb": {
"r": "0",
"g": "0",
"b": "0"
},
"hex": "#000000",
"name": "black"
},
# How to Write a Book About Software
# 1. Know something about Software
# 2. Spend time collecting the stuff you know
# 3. Use software to produce the manuscript
# popdemtech
####################
# SCRIPT STARTS HERE
####################
@popdemtech
popdemtech / smartsite.json
Last active January 10, 2023 07:35
Build a Smartsite by PopularDemand
[
{
"title": "Front Matter",
"slug": "front-matter",
"content": "# `smartsite` by Popular Demand\n\n*Web Application Fundamentals Made Simple*\n\nHey everyone. Welcome to a guide to Web Development.\n\nThe purpose of `smartsite` is to provide interested individuals with\na launch point for building a personal web application.\n\nBefore beginning, the individual must be able to:\n<ol type=\"a\">\n <li>Download and install programs</li>\n <li>Browse the internet</li>\n <li>Use the command-line interface</li>\n</ol>\n\nUsing the command-line interface is likely the least familiar of the skills.\nLuckily, commands that are **necessary** for building the application\nwill be given by the walkthrough. Still, because the command-line will be one of the primary development tools, beginner level proficiency is recommended.\n\nThe guides will present a path of Node.js web development that it known to work.\nDifferences in operating system and setup may require modifications to the instructions.\n\n## T
@popdemtech
popdemtech / api-card.html
Created December 20, 2022 06:27
Web Component which makes an API call and renders the response on screen 😎
<html>
<head>
<!-- This file defines a web component APICard/api-card -->
<!-- which, when given an JSON returning route, -->
<!-- renders the response returned by the route -->
<!-- or the error message returned by the route -->
<!-- in a graphical, user-friendly way -->
</head>
<body>