Skip to content

Instantly share code, notes, and snippets.

View ginsterbusch's full-sized avatar

Fabian Wolf ginsterbusch

View GitHub Profile
@ginsterbusch
ginsterbusch / content.php
Last active March 26, 2016 19:13
Ribosome Theme: Moves the read more-link (on the home / front page) to the entry footer (child-theme safe).
<?php
/**
* Snippets for the content.php file, which displays regular posts, including those on the front / home page.
* NOTE: This applies to Ribosome v1.3.2
*/
/**
* Line #87: Replace "the_excerpt()" with "echo get_the_excerpt()"
* Alternatively, search for </div><!-- .excerpt-wrapper --> and then go two lines up ;)
*/
@ginsterbusch
ginsterbusch / console.js
Created February 3, 2016 01:47
console tricks compared
// preparation
var foo = 'test', bar = false, hello = { 'world':{ 'silly':'buggers'} };
// original base statement:
console.log('foo = ' + foo + ', bar = ' + bar);
// suggested version of http://makandracards.com/makandra/38271-useful-tricks-for-logging-debugging-information-to-the-browser-console
console.log('foo = %o, bar = %o', foo, bar);
// adjusted for hello
@ginsterbusch
ginsterbusch / config.json
Last active January 15, 2016 11:48 — forked from anonymous/config.json
Bootstrap Customizer Config for CF 7
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@ginsterbusch
ginsterbusch / flacon-likes-me...not.cue
Created January 8, 2016 22:31
CUE file for splitting up my show to both Rumbustion (approx 90 min) and the Black'N'Deather Über-XXL-Night of Glowing Embers-Edition (Christmas / 24th of Decembre). Sadly, flacon choked on it.
TITLE "Black'N'Deather meets Rumbustion Uber-XXL-Edition"
PERFORMER "DJ Herr Ginsterbusch"
FILE "idjc_[2015-12-24][19:00:03]_01.flac" FLAC
TRACK 01 AUDIO
TITLE "Rumbustion 2015-12-24"
PERFORMER "DJ Herr Ginsterbusch"
INDEX 01 00:00:01
TRACK 02 AUDIO
TITLE "Black'N'Deather 2015-12-24"
PERFORMER "DJ Herr Ginsterbusch"
@ginsterbusch
ginsterbusch / tooltip.tpl
Created December 2, 2015 08:56
Example tooltip template for exo.
%track_leading_zero% - %artist% - %song% (%album%)
%tl% / %tt%
%cover_image%
@ginsterbusch
ginsterbusch / ext-link-redirect.js
Last active August 29, 2015 14:25
Example for an external link redirect out of a WP menu (JS overlay, centered message, CSS).
@ginsterbusch
ginsterbusch / template-loader.php
Last active August 29, 2015 14:22
Example of how to implement separate customizable templates for plugins (similar to how eg. WooCommerce uses them)
$template_name = 'my_template.php';
$load_template = plugin_dir_path(__FILE__) . 'templates/' . $template_name;
/**
* See @link http://codex.wordpress.org/Function_Reference/wp_upload_dir#Usage
*/
if( file_exists( $upload_dir['basedir'] . '/my_plugin_name/' . $template_name ) ) {
$load_template = $upload_dir['basedir'] . '/my_plugin_name/' . $template_name;
} else {
transkription von https://youtu.be/OBAEUd0NOEE?t=7m52s
"pass auf kleine, wenn zwei Fische sich ganz doll lieb haben und ein Kind wünschen - dann kommt der Storch und bring 10.000 - und die Eltern sterben, weil sie von Bären gefressen werden!"
@ginsterbusch
ginsterbusch / quickfix.css
Last active August 29, 2015 14:20
quick fix for the unintentional line break in the nav bar at https://cologne.wordcamp.org/2015/
/**
* Fix with em
*/
.main-navigation a {
font-size: 1.5em;
}
/**
* Fix with rem
*/