Skip to content

Instantly share code, notes, and snippets.

View glueckpress's full-sized avatar

Caspar Hübinger glueckpress

View GitHub Profile
@Rarst
Rarst / r-debug.php
Last active February 3, 2024 17:30
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
@bueltge
bueltge / github-ribbon.html
Created January 27, 2012 10:23
Github Ribbon only with css3
<a id="github" href="https://github.com/bueltge">
<span>Fork me on GitHub!</span>
<span>Get free lemonade!</span>
</a>
@bueltge
bueltge / gist:1559249
Created January 4, 2012 09:19
Custom Query Shortcode: Run a Loop inside any Post/Page
<?php
/**
* Plugin Name: Custom Query Shortcode
* Plugin URI:
* Description: Run a Loop inside any Post/Page via Shortcode <code>[loop]</code>
* Version: 0.0.1
* License: GPLv3
* Author: Frank B&uuml;ltge
* Author URI: http://bueltge.de/
*/
@sergejmueller
sergejmueller / .htaccess
Created December 21, 2011 14:12
Beispiel einer .htaccess Datei unter WordPress
# Admin absichern
<Files wp-login.php>
AuthName "Admin-Bereich"
AuthType Basic
AuthUserFile /var/www/pfad/.htpasswd
require valid-user
</Files>
# Zugriff verweigern
@bueltge
bueltge / widget-tut.php
Last active December 8, 2017 03:19 — forked from chrisguitarguy/widget-tut.php
An example of how to build your own WordPress widget
<?php
/*
Plugin Name: FB Widget Tutorial
Plugin URI:
Description: How to create WordPress Widgets.
Version: 13/03/2013
Author: Frank Bültge
Author URI: http://bueltge.de/
License: GPLv3
*/
@bueltge
bueltge / gist:1242366
Created September 26, 2011 14:30
How to use AJAX with WordPress to post and process Javascript
<?php
/*
* Example of how to use AJAX with WordPress to post and process Javascript arrays of objects.
* Drop this in your WordPress theme's functions.php file and it will display the array of objects on page load in the admin
* REF: http://lists.automattic.com/pipermail/wp-hackers/2011-September/040834.html
* By: Mike Schinkel - http://about.me/mikeschinkel
*/
add_action( 'admin_init', 'mytheme_admin_init' );
function mytheme_admin_init() {
wp_enqueue_script('jquery');
@sergejmueller
sergejmueller / gist:1213479
Created September 13, 2011 09:27
Prüfung auf ein geladenes und ansprechbares jQuery-Plugin
if ( jQuery.isFunction(jQuery.fn.bxSlider) ) {
$('#slider').bxSlider(
{
...
}
);
}