Skip to content

Instantly share code, notes, and snippets.

View pfefferle's full-sized avatar
😴
zzZZzzzZzzZZzZZZ

Matthias Pfefferle pfefferle

😴
zzZZzzzZzzZZzZZZ
View GitHub Profile
<?php
function is_valid_mf2_json($input) {
// Input to this function must be an array
if(!is_array($input))
return false;
// Keys type and properties are required at a minimum and must be arrays
if(!isset($input['type']) || !is_array($input['type']))
return false;
<?php
function zenpress_child_setup() {
// This theme supports a custom header
$custom_header_args = array(
'width' => 1250,
'height' => 600,
'header-text' => true,
);
add_theme_support( 'custom-header', $custom_header_args );
}
<style type="text/css">
article { width: 100%; }
article p { width: 800px; margin: 0 auto; }
article figure { width: 2500px; margin: 0 auto; }
</style>
<article>
<p>Lorem Ipsum...</p>
<figure>
<img src="/img.png" alt="demo image" />
@pfefferle
pfefferle / abb-1.html
Last active February 10, 2017 21:45
Websemantics Artikel
<a href="http://jeff.example.org" rel="friend met">...

Keybase proof

I hereby claim:

  • I am pfefferle on github.
  • I am pfefferle (https://keybase.io/pfefferle) on keybase.
  • I have a public key whose fingerprint is F598 CA03 818C 2356 5151 FBCB 6542 6B1E 517A A764

To claim this, I am signing this object:

<?php
function sempress_lite_setup() {
remove_theme_support( 'custom-background' );
remove_action( 'customize_register', 'sempress_customize_register' );
remove_action( 'wp_head', 'sempress_customize_css');
}
/**
<?php
/*
Plugin Name: Exclude Cat 24
Plugin URI: https://gist.github.com/pfefferle/5974102
Description: Exclude Cat 24
Author: pfefferle
Author URI: http://notizblog.org/
Version: 1.0.0-dev
*/
function ekaabo_exclude_cat( $query ) {
hub.mode=publish&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2Fatom%2F&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2Frss%2F&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2Frdf%2F&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2F&hub.url=https%3A%2F%2Fnotizblog.org%2F&hub.url=https%3A%2F%2Fnotizblog.org%2Freplies%2F
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"><status feed="http://notizblog.org/replies/" xmlns="http://superfeedr.com/xmpp-pubsub-ext"><http code="200">Parser Error undefined entity</http><next_fetch>2013-07-02T12:22:39Z</next_fetch><entries_count_since_last_maintenance>0</entries_count_since_last_maintenance><period>450</period><last_fetch>2013-07-02T10:17:35Z</last_fetch><last_parse>2009-03-31T02:25:05Z</last_parse><last_maintenance_at>2013-07-02T08:08:32Z</last_maintenance_at></status><title></title><updated></updated><id></id></feed>
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<status xmlns="http://superfeedr.com/xmpp-pubsub-ext" feed="http://notizblog.org/replies/">
<http code="200">Parser Error undefined entity</http>
<next_fetch>2013-07-02T09:06:15Z</next_fetch>
<period>600</period>
<last_fetch>2013-07-02T08:51:04Z</last_fetch>
<last_parse>2009-03-30T22:25:05Z</last_parse>
<last_maintenance_at>2013-07-02T08:08:32Z</last_maintenance_at>
</status>