Skip to content

Instantly share code, notes, and snippets.

Avatar
🍜
Ramen connoisseur

Jess Green jesgs

🍜
Ramen connoisseur
View GitHub Profile
@jesgs
jesgs / composer.json
Created Jul 29, 2020
Composer install scripts for WordPress and Homestead
View composer.json
{
"name": "jesgs/wordpress-project",
"type": "project",
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
@jesgs
jesgs / config.json
Last active Oct 26, 2019
Fadecandy Config
View config.json
{
"listen": ["127.0.0.1", 7890],
"relay": [null, 7891],
"verbose": true,
"color": {
"gamma": 2.5,
"whitepoint": [1.0, 1.0, 1.0]
},
@jesgs
jesgs / post-order-attribute-fix.php
Last active Apr 20, 2020
Fixes issue with menu_order not saving properly with Gutenberg
View post-order-attribute-fix.php
<?php
/**
* Add page attributes to post
*/
function mytheme_add_post_attributes()
{
add_post_type_support('post', 'page-attributes');
}
add_action('init', 'mytheme_add_post_attributes', 500);
@jesgs
jesgs / GDPR.md
Created Apr 23, 2019 — forked from malarkey/GDPR.md
(Data) Protection Racket
View GDPR.md
View table-size-calc.sql
SELECT
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM information_schema.TABLES
WHERE table_schema NOT IN ('performance_schema', 'mysql', 'information_schema')
ORDER BY (data_length + index_length) DESC;
@jesgs
jesgs / git-example.bash
Created Apr 13, 2019
Update git email address
View git-example.bash
git config --global user.email "your@email_address.tld"
git rebase -i
git commit --amend --reset-author
git rebase --continue
git push
View accordion.scss
.control-extend {
&__label {
display: none;
@media only screen and (min-width: 768px) {
display: inline-block;
font-weight: 800;
cursor: pointer;
color: black;
&:hover {
View index.html
<div class="wrapper">
<header class="row">
<h1 class="h h1">MoonPhase App</h1>
</header>
<div class="row">
<ul class="data-table h3">
<li>
<strong class="label">Current Date</strong><span class="value js-current-date-value"></span>
</li>
@jesgs
jesgs / next-comic-link-example.php
Last active Aug 26, 2018
Turn comic image into "next comic" link
View next-comic-link-example.php
View marquee.css
.marquee {
overflow: hidden;
position: relative;
}
.marquee .responsive-table {
width: 100%;
height: max-content;
display: block;
You can’t perform that action at this time.