Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en-EN">
<head>
<meta charset="UTF-8" />
<title>Test custom background &amp; header</title>
</head>
<body class="wordpress" itemscope="itemscope" itemtype="http://schema.org/WebPage">
@blueprintmrk
blueprintmrk / gist:11149207
Created April 21, 2014 17:13
site_map.xml
# Rewrites for WordPress SEO XML Sitemap
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;

A Perfect Minimal iPhone Template

Haha just bored. The dimensions are almost exact, I rounded them to one decimal and converted to em units so you can scale it to any size. Horizontal version also included.

A Pen by Stan Williams on CodePen.

License.

@blueprintmrk
blueprintmrk / index.js
Created August 2, 2014 13:15
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
<?php
if ( isset( $_SERVER['REQUEST_URI'] ) && in_array( substr( $_SERVER['REQUEST_URI'], -4 ), array( '.xml', '.xsl' ) ) ) {
remove_all_actions( 'widgets_init' );
}
<?php
add_action('wp_head','tribe_dont_index_single_events');
function tribe_dont_index_single_events() {
if ( is_singular() && get_post_type() == TribeEvents::POSTTYPE )
echo '<meta name="robots" content="noindex">';
}
// Generated by the Send System Info Plugin //
Multisite: No
SITE_URL: http://www.mediadigest.be
HOME_URL: http://www.mediadigest.be
WordPress Version: 3.9.1
Permalink Structure: /%postname%/
Active Theme: OMD Media Digest 2013.4
@blueprintmrk
blueprintmrk / Sign-Up-&-Login-Form.markdown
Created August 22, 2014 02:17
A Pen by Blueprint Marketing.
#
# A CORS (Cross-Origin Resouce Sharing) config for nginx
#
# == Purpose
#
# This nginx configuration enables CORS requests in the following way:
# - enables CORS just for origins on a whitelist specified by a regular expression
# - CORS preflight request (OPTIONS) are responded immediately
# - Access-Control-Allow-Credentials=true for GET and POST requests