Skip to content

Instantly share code, notes, and snippets.

javascript:location.href='https://tiny.n9n.us/?indie-action=like&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)
<?php if ( ! empty( $comments_by_type['webmention'] ) ) { ?>
<div id="mentionlist-container" class="comment-tab">
<ol class="mentionlist">
<?php // not calling wp_list_comments twice, as it breaks pagination
$pings = $comments_by_type['webmention'];
foreach ($pings as $comment) { ?>
<li class="ping">
<?php get_avatar($comment); ?>
<div class="ping-meta"><?php comment_date( get_option( 'date_format' ), $comment ); ?></div>
@dshanske
dshanske / post-kinds-change-kind.php
Created December 8, 2017 14:06
Simple Plugin to Change Post Formats
/**
* Post Kinds Custom Post Format Change
* Plugin Name: Post Kinds Custom Post Format
* Plugin URI:
* Description: Change Post Kind to Post Format Mapping
* Version: 0.0.1
* Author: David Shanske
* Author URI: https://david.shanske.com
*/
@dshanske
dshanske / micropub-syndication.json
Created April 25, 2018 22:55
Example Return from Syndication
{"syndicate-to":[{"uid":"bridgy-publish_twitter","name":"Twitter via Bridgy Publish"},{"uid":"bridgy-publish_facebook","name":"Facebook via Bridgy Publish"},{"uid":"bridgy-publish_github","name":"Github via Bridgy Publish"}]}
@dshanske
dshanske / 06jan18-b61472
Created January 7, 2019 02:30
FlyFi B6 1472 06jan18
[{"class":"com.bluebird.web.notification.TravelNotificationResponse","eventType":"TRAVEL_NOTIFICATION_EVENT","message":null,"travelInforesponse":{"airplaneIconImagePath":null,"altitude":"28920","arrivalAirport":{"airportCode":"LGA","airportMobilesiteURL":"http://mobile.jetblue.com/mt/help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(10487)","airportName":"LaGuardia International Airport","airportWebsiteURL":"http://help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(10487)","city":{"activities":{"activity":[{"class":"com.bluebird.core.valueobjects.travel.cities.Activity","name":"DO","section":[{"class":"com.bluebird.core.valueobjects.travel.cities.Section","description":"With 45 exhibition halls and more than 32 million artifacts and specimens, the American Museum of Natural History is the world's largest, most important and most innovative museum of its kind. Explore its famous dinosaur halls, which use real fossils; the life-size \"Dzanga-Sangha Rainforest,\" complete with th
@dshanske
dshanske / Guide to FlyFi data
Created January 7, 2019 02:37
How to Get FlyFi data
Url is http://www.flyfi.com/ajax/notification.do
POST to the url using parameter actionkey=TRAVEL_PAGE_REFERESH
For FlyFi status, use actionkey=WEB_HOME_PAGE
[{"class":"com.bluebird.web.notification.TravelNotificationResponse","eventType":"TRAVEL_NOTIFICATION_EVENT","message":null,"travelInforesponse":{"airplaneIconImagePath":null,"altitude":"36031","arrivalAirport":{"airportCode":"FLL","airportMobilesiteURL":"http://mobile.jetblue.com/mt/help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(3271)","airportName":"Fort Lauderdale Hollywood International Airport","airportWebsiteURL":"http://help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(3271)","city":{"activities":{"activity":[{"class":"com.bluebird.core.valueobjects.travel.cities.Activity","name":"DO","section":[{"class":"com.bluebird.core.valueobjects.travel.cities.Section","description":"Waves or no waves, at Fort Lauderdale Kite Surfing Co. you can experience the fun of wakeboarding, paragliding and surfing.","title":"Surf's way up"},{"class":"com.bluebird.core.valueobjects.travel.cities.Section","description":"The best way to experience the Everglades, the one-hour Airboat Everg
http://getconnected.southwestwifi.com/current.json
{"pcent_flt_complete": 0, "altVal": "-24", "lon": "-73.867", "satcomm_status": {"commlink": "active", "linkparams": "not-stale"}, "dtzone": "CDT", "within_us": true, "etad": "09:20 AM", "lat": "40.775", "gspdVal": "10", "ttgc": "2h 15m", "dist_remain": "888", "actime24": "07:05"}
services.inflightpanasonic.aero/inflight/services/flightdata/v2/flightdata
{ "decompression_state": false, "weight_on_wheels": false, "all_doors_closed": true, "ground_speed_knots": 477, "time_to_destination_minutes": 266, "wind_speed_knots": 20, "flight_speed_mach": 0.806, "true_heading_degree": 69, "current_utc_time": "00:01", "outside_air_temp_celsius": -49, "head_wind_speed_knots": 20, "current_utc_date": "2019-11-22", "distance_to_destination_nautical_miles": 2190, "altitude_feet": 35013, "destination_icao": "EIDW", "departure_icao": "KJFK", "flight_number": "EI104", "destination_iata": "DUB", "departure_iata": "JFK", "tail_number": "EI-DUZ", "flight_phase": "cruising", "departure_utc_offset_minutes": -300, "destination_utc_offset_minutes": 0, "route_id": 5, "time_at_origin": "19:01", "time_at_destination": "00:01", "distance_from_departure_nautical_miles": 564, "distance_traveled_nautical_miles": 557, "estimated_arrival_time_utc": "04:27", "ta
[{"class":"com.bluebird.web.notification.TravelNotificationResponse","eventType":"TRAVEL_NOTIFICATION_EVENT","message":null,"travelInforesponse":{"airplaneIconImagePath":null,"altitude":"34024","arrivalAirport":{"airportCode":"SFO","airportMobilesiteURL":"http://mobile.jetblue.com/mt/help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(382909)","airportName":"San Francisco International Airport","airportWebsiteURL":"http://help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(382909)","city":{"activities":{"activity":[],"class":"com.bluebird.core.valueobjects.travel.cities.Activities"},"airports":{"airport":[{"IATA":"SFO","ICAO":"KSFO","class":"com.bluebird.core.valueobjects.travel.cities.Airport","jbsitemoburl":"http://mobile.jetblue.com/mt/help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(382909)","jbsiteurl":"http://help.jetblue.com/SRVS/CGI-BIN/webisapi.dll?New,Kb=askBlue,case=obj(382909)","name":"San Francisco International Airport"}],"class":"com.bluebird.core