Skip to content

Instantly share code, notes, and snippets.

View jekkilekki's full-sized avatar

Aaron Snowberger jekkilekki

View GitHub Profile
@jekkilekki
jekkilekki / add-items.js
Created July 7, 2021 05:04
CodePen JS Shopping App Code
let STORE_BUTTON = document.querySelector('.add-item-button');
let STORE_INPUT = document.getElementById('add-item-input');
// Store button
STORE_BUTTON.onclick = function() { handleAdd() };
// Add item on keyboard ENTER
STORE_INPUT.addEventListener('keyup', function(e) {
if ( e.keyCode === 13 ) {
STORE_BUTTON.click();
@jekkilekki
jekkilekki / README.md
Last active June 11, 2022 22:17
New Website (WordPress) Helpers

New Website (WordPress) Helpers

These website building helpers are originally extracted from the WordPress TwentyTwenty Theme and are intended to provide easy access to some of the most common basic styles for a website.

This Gist will be occasionally updated with my own preferences for these styles. Files include the following:

File Purpose
PHP
@jekkilekki
jekkilekki / lifeData.csv
Last active January 25, 2017 05:10
Data for D3.js Radar Chart
section twenty14 twenty15 twenty16
Physical 3 4 6
Mental 5 4 6
Spiritual 4 3 2
Career 2 5 6.5
Financial 4 2 7
Family 5 6 4
Relationships 3 5.5 5
Lifestyle 4 5 3
@jekkilekki
jekkilekki / _.md
Last active January 19, 2017 10:54
Bar Chart
@jekkilekki
jekkilekki / _.md
Last active January 19, 2017 11:26
D3 Pie Chart
@jekkilekki
jekkilekki / .block
Last active January 18, 2017 09:55
D3 Pie Chart - Year in Review
license: gpl-3.0
@jekkilekki
jekkilekki / .block
Last active January 19, 2017 01:01
Lynda.com Author & Courses Bar chart
license: gpl-3.0
@jekkilekki
jekkilekki / data.xml
Last active January 14, 2017 11:05
D3 Data Visualization data
<?xml version="1.0" encoding="utf-8"?>
<data>
<dat id='1990'><top>82</top><middle>5</middle><bottom>9</bottom></dat>
<dat id='1991'><top>47</top><middle>91</middle><bottom>11</bottom></dat>
<dat id='1991'><top>48</top><middle>60</middle><bottom>11</bottom></dat>
<dat id='1992'><top>61</top><middle>96</middle><bottom>97</bottom></dat>
<dat id='1993'><top>40</top><middle>13</middle><bottom>9</bottom></dat>
<dat id='1994'><top>99</top><middle>32</middle><bottom>23</bottom></dat>
<dat id='1995'><top>93</top><middle>7</middle><bottom>37</bottom></dat>
<dat id='1996'><top>62</top><middle>41</middle><bottom>95</bottom></dat>
@jekkilekki
jekkilekki / slide-in-images.css
Created January 10, 2017 07:45
Slide in as you scroll down boxes
/**
* Sliding Image Panels
*/
.slide-panel:not(first-child) {
border-top: 1px solid #ddd;
}
.slide-panel .entry-header {
width: 58%;
}
.slide-panel .entry-content {
@jekkilekki
jekkilekki / update_wp_pass_phpmyadmin.sql
Created January 9, 2017 08:11
How to Update your WP Password via phpMyAdmin (SQL)
UPDATE `wp_users` SET `user_pass`= MD5('yourpassword') WHERE `user_login`='yourusername';