Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Snowberger jekkilekki

View GitHub Profile
@jekkilekki
jekkilekki / dot-border.svg
Last active Dec 18, 2016
SVG to create true round-dotted borders
View dot-border.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jekkilekki
jekkilekki / update_wp_pass_phpmyadmin.sql
Created Jan 9, 2017
How to Update your WP Password via phpMyAdmin (SQL)
View update_wp_pass_phpmyadmin.sql
UPDATE `wp_users` SET `user_pass`= MD5('yourpassword') WHERE `user_login`='yourusername';
@jekkilekki
jekkilekki / data.xml
Last active Jan 14, 2017
D3 Data Visualization data
View data.xml
<?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 / .block
Last active Jan 18, 2017
D3 Pie Chart - Year in Review
View .block
license: gpl-3.0
@jekkilekki
jekkilekki / .block
Last active Jan 19, 2017
Lynda.com Author & Courses Bar chart
View .block
license: gpl-3.0
@jekkilekki
jekkilekki / _.md
Last active Jan 19, 2017
Bar Chart
View _.md
@jekkilekki
jekkilekki / _.md
Last active Jan 19, 2017
D3 Pie Chart
View _.md
@jekkilekki
jekkilekki / lifeData.csv
Last active Jan 25, 2017
Data for D3.js Radar Chart
View lifeData.csv
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 / customizer-pseudo-elements.js
Last active Feb 6, 2017
Use a Background Gradient in WP Customizer + Various other Customizer functions
View customizer-pseudo-elements.js
/**
* Make the WP Customizer also recognize and adjust pseudo- elements like :before and :hover
* Non-instantaneous update - requires partial page refresh
*/
// Highlight colors
wp.customize( 'highlight_color', function( value ) {
value.bind( function( to ) {
$( 'a:visited, a:hover, a:focus, a:active, .entry-content a, .entry-summary a' ).css( {
@jekkilekki
jekkilekki / taxonomy-dropdowns.js
Created Nov 21, 2016
WordPress taxonomy dropdowns - if too long (default is to show all taxonomies)
View taxonomy-dropdowns.js
jQuery(document).ready(function($) {
/*
* For Taxonomy dropdowns in Post meta
*/
$( '.cat-links .jkl-tax-switch, .tags-links .jkl-tax-switch' ).click( function( e ) {
e.preventDefault();
if( $( this ).next( 'ul' ).hasClass( 'childopen' ) ) {
$( this ).next( 'ul' ).removeClass( 'childopen' );
} else {
You can’t perform that action at this time.