Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
#!/bin/sh
PATH="/usr/local/bin:$PATH"
git diff --quiet --cached -- submodules/ || {
echo "$(tput setaf 1) ABORT: Submodules change detected. Please verify your submodules are correct and try again. \n"; exit 1;
}
# is VERBOTEN ( ie, protect us from ourselves )
find ./wp-content/themes/Phoenix/ -type f -name "*.php" -o -name "*.styl" -o -name "*.js" | \
xargs egrep -i '(^<<<<<<<\s)|(^>>>>>>>\s)|(^=======$)'
<snippet>
<content><![CDATA[
Message | PR | Developer
--------|:--:|----------
]]></content>
<tabTrigger>release</tabTrigger>
<description>Github Release Notes</description>
</snippet>
<?php
/**
* Change the slug to radio on SSP.
*/
add_filter( 'ssp_archive_slug', function(){ return 'radio'; } );
{
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"font_face": "Source Code Pro",
"font_size": 11.0,
"ignored_packages":
[
"Color Highlighter",
"Vintage"
],
--- /Users/jspurloc/Sites/wired-wp/wp-content/plugins/feature-story-builder/builder-frontend/assets/styl/www.html
+++ /Users/jspurloc/Sites/wired-wp/wp-content/plugins/feature-story-builder/builder-frontend/assets/styl/stag.html
@@ -1,10 +1,10 @@
<div id="postbox-container-2" class="postbox-container">
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
<div id="ttfmake-builder" class="postbox hide-if-js">
- <div class="handlediv" title="Click to toggle"><br></div>
- <h3 class="hndle ui-sortable-handle"><span>Page Builder</span></h3>
+ <button type="button" class="handlediv button-link" aria-expanded="true"><span class="screen-reader-text">Toggle panel: Page Builder</span><span class="toggle-indicator" aria-hidden="true"></span></button>
+ <h2 class="hndle ui-sortable-handle"><span>Page Builder</span></h2>
{
"description": "Print those selfies immediately! Polaroid's Snap camera is perfect for any party and it costs less than $100.",
"disclaimer": "",
"slug": "ces-2016-ces-2016-polaroid-s-new-and-affordable-printing-camera",
"permaslug": "ces-2016-ces-2016-container-5",
"duration_in_ms": 57000,
"tags": ["camera", "ces", "ces 2016", "consumer electronics show", "electronics", "polaroid", "printing"],
"categories": ["Gadgets", "Technology"],
"legal_credits": "",
"premiere_date": "2016-01-07T12:00:00.000+00:00",
@whyisjake
whyisjake / transporation-added-apple-news.md
Created December 29, 2015 23:06
Add Transportation to Apple News
<?php
/*
* Plugin Name: Ready to Publish
* Description: Add a little checkbox to ensure that you are ready to publish a post.
* Author: Jake Spurlock
* Version: 0.5.0
*/
class Ready_to_Publish {
/**
@whyisjake
whyisjake / import_podcasts.php
Last active March 29, 2021 17:30
WP-CLI script to import posts from an RSS feed into WordPress. Meant to map to existing posts, and if they don't exist, create new ones.
<?php
WP_CLI::add_command( 'podcast', 'Podcast_Importer' );
/**
* Podcast Importer
*/
class Podcast_Importer extends WP_CLI_Command {
<style>
.time { vertical-align: top; width: 10%; }
.speaker { vertical-align: top; width: 25% }
.desc { vertical-align: top; }
table.schedule tr { margin-bottom 20px; }
table.schedule tr td { padding: 20px 10px; }
table.schedule.min tr td { padding: 10px; }
table.schedule tr:nth-child(odd) {
background-color: #eee;
}