Skip to content

Instantly share code, notes, and snippets.

🍜
Ramen connoisseur

Jess Green jesgs

🍜
Ramen connoisseur
Block or report user

Report or block jesgs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jesgs
jesgs / 00-blinker-fadecandy-js-readme.md
Last active Aug 29, 2015
Node.js-version of Arduino code for Spooky LED Eyes (on Adafruit)
View 00-blinker-fadecandy-js-readme.md
@jesgs
jesgs / 00-README.md
Last active Aug 29, 2015
Working with WordPress's Metadata API
View 00-README.md

Working with WordPress's Metadata API

This tutorial describes how to work with the WordPress Metadata API as described in the tutorial (Working with WordPress's Metadata API) posted on my blog.

View parse_xlsx.php
<?php
/**
* I had to parse an XLSX spreadsheet (which should damn well have been a CSV!)
* but the usual tools were hitting the memory limit pretty quick. I found that
* manually parsing the XML worked pretty well. Note that this, most likely,
* won't work if cells contain anything more than text or a number (so formulas,
* graphs, etc ..., I don't know what'd happen).
*/
@jesgs
jesgs / fcserver.json
Created May 13, 2015
fcserver config for working with 12mm LEDs (strands of 50)
View fcserver.json
{
"listen": [ null, 7890 ],
"verbose": true,
"color": {
"gamma": 2.5,
"whitepoint": [ 0.9, 0.9, 0.9 ]
},
"devices": [
{
"type": "fadecandy",
@jesgs
jesgs / login-styles-removal.php
Last active Aug 29, 2015
A method for removing all default styles from WordPress login screen.
View login-styles-removal.php
<?php
/**
* Remove all WordPress-specific stylesheets from WordPress login screen
*/
/**
* Force-remove login-related styles. Can't use the regular method of login_enqueue_scripts
* due to wp_admin_css running before login_enqueue_scripts
*
@jesgs
jesgs / wp-framework-example.php
Last active Oct 13, 2015
WordPress Post-Type Framework Example
View wp-framework-example.php
<?php
add_action('init', 'theme_post_types');
/**
* Reqister Post-Types
*
* @return void
*/
function theme_post_types()
{
//example #1:
@jesgs
jesgs / us-states-php-arrays.php
Last active Dec 11, 2015
US States PHP Arrays
View us-states-php-arrays.php
<?php
/* States */
$us_states = array(
'alabama' => 'Alabama',
'alaska' => 'Alaska',
'arizona' => 'Arizona',
'arkansas' => 'Arkansas',
'california' => 'California',
'colorado' => 'Colorado',
@jesgs
jesgs / us-states-acf-fields.txt
Last active Dec 11, 2015
US States (For Advanced Custom Fields drop-downs)
View us-states-acf-fields.txt
AL : ALABAMA
AK : ALASKA
AS : AMERICAN SAMOA
AZ : ARIZONA
AR : ARKANSAS
CA : CALIFORNIA
CO : COLORADO
CT : CONNECTICUT
DE : DELAWARE
DC : DISTRICT OF COLUMBIA
@jesgs
jesgs / us-states.html
Created Jan 16, 2013
US States (HTML)
View us-states.html
<select name="State">
<option value="" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
View zip-code-range.php
<?php
/**
* Retrieve range of zip codes within given radius as
* determined by $rad
* Taken from http://www.movable-type.co.uk/scripts/latlong-db.html
*
* @global wpdb $wpdb
*
* @param integer $zip Zip code to query for
* @param integer $radius Radius in miles
You can’t perform that action at this time.