Skip to content

Instantly share code, notes, and snippets.

View codewizard13's full-sized avatar
💭
Designing WordPress Websites

Eric L. Hepperle codewizard13

💭
Designing WordPress Websites
View GitHub Profile
@codewizard13
codewizard13 / input.scss
Created November 16, 2022 20:17
Generated by SassMeister.com.
/* ---------- TABLE: BASE ------------ */
.ehw-body.notes {
h2 {
color: cadetblue;
}
table {
border: solid 2px brown;
margin: 0;
@codewizard13
codewizard13 / input.scss
Created October 21, 2022 13:47
Generated by SassMeister.com.
:root {
--color-air-superiority-blue: #6190a7;
--color-cornsilk: #fff3d5;
--color-teal-blue: #3d6b7f;
--color-sunray: #f0ad4e;
--color-rhythm: #777197;
--color-gray-300: #9E9E9E
@codewizard13
codewizard13 / input.scss
Created October 21, 2022 13:17
Generated by SassMeister.com.
:root {
--color-air-superiority-blue: #6190a7;
--color-cornsilk: #fff3d5;
--color-teal-blue: #3d6b7f;
--color-sunray: #f0ad4e;
--color-rhythm: #777197;
--color-gray-300: #9E9E9E
@codewizard13
codewizard13 / input.scss
Created September 22, 2022 13:32
Generated by SassMeister.com.
.ehw-port-par {
line-height: 1.2em;
color: rgba(255, 255, 255, 0.5);
h5 {
color: white;
}
> p {
margin-bottom: .6rem;
@codewizard13
codewizard13 / webpack.config.js__2022-01-24.js
Created January 25, 2022 19:53
webpack.config.js state following "Git a Web Developer Job" Udemy course, Lecture 20: hot module reload no longer works after implementing the watchFiles property
const path = require('path')
const postCSSPlugins = [
require('postcss-import'),
require('postcss-simple-vars'),
require('postcss-nested'),
require('autoprefixer')
]
module.exports = {
NOTE: I can't find any clear answer anywhere else so I'm posting a new question.
## THE ISSUE
I'm following a MySQL tutorial from 2014 and I'm getting stuck at the insert statement. I checked the manual, but didn't find anything that clearly and kindly explained "this is how things were in 2014, and this is how and why they changed the INSERT statement"... Now, I'm not at all certain that the solution has anything to do with changes between the different versions, however that is my best guess so far.
I've install MySQL 8.0.11 and was able to create a new database and a table within the database. In the normal CRUD tutorial sequence, the next item is to ***insert a row or record into the table***. Unfortunately ***this is where the tutorial 'breaks'*** with the error:
> Error Code: 1136. Column count doesn't match value count at row 1 0.000 sec
@codewizard13
codewizard13 / ehw_banas_mysql_2018_notes_error.txt
Last active July 19, 2018 11:24
Tutorial Notes: Derek Banas MySQL tutorial error + links searched
16:37:08 mysqldump -u root -p mysql_banas > banas.sql Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqldump -u root -p mysql_banas > banas.sql' at line 1 0.000 sec
mysqldump --databases test > dump.sql
>mysqldump -u root -p mysql_banas > banas.sql
Enter password: ****
mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061) when trying to connect
@codewizard13
codewizard13 / ehd-tutorial-html5-localstorage.js
Last active October 8, 2018 17:39
Eric Hepperle Designs Tutorial: Demonstrates basic usage for HTML5 localStorage using ES6 JavaScript.
/*
Program Name: Console: Tutorial Code - HTML5 Local Storage (Simple Example)
File Name: ehCode_2018.06.26_JavaScriptES6_Demo_HTML5LocalStorage_01.js
Date Created: 06/26/18
Date Modified: --
Version: 1.0
Programmer: Eric Hepperle
Purpose: Uses vanilla ES6 JavaScript to demonstrate HTML5 Local Storage.
@codewizard13
codewizard13 / wp-config-info-template.md
Last active June 4, 2018 16:26
Cheatsheet for configuring your WordPress website. Be prepared with all your config data in one place using this handy form template.

WordPress Website Config Info Template

By: Eric L. Hepperle (CodeWizard13)

Here are most of the items you will need to configure WordPress from scratch. Feel free to copy, share, and modify (in your own space) as much as you want. All I ask is that you credit me as the author, as per CC BY-SA 4.0

GitHub Gist for WordPress Website Config Info Template (User: codewizard13).

Item Value
@codewizard13
codewizard13 / gist:d742f43dc32fda60a7ab6a78585ed1ba
Last active May 9, 2016 16:23
2016-05-09 - Builds a CSV from the Medical Medium's list of Recommended Supplements
$('div.amaprod').each( function(i) {
var rowArray = [];
var title = $(this).find('div.ttl')[0].innerHTML;
//console.log('Title ' + i + ': ' + title);
var frameSrc = $(this).find('iframe')[0].src;
rowArray = [i,title,frameSrc];
var outText = rowArray.join("|");