Skip to content

Instantly share code, notes, and snippets.

@benthebear
benthebear / tilescape.php
Last active September 22, 2021 13:01
tilescape.php
<?php
/*
Any given tile
1 | 2 | 3 | 4 | 5
-----------------------
6 | 7 | 8 | 9 | 10
@benthebear
benthebear / hide-cookie-notices-with-stylish.css
Last active June 6, 2019 20:03
Hide Cookie Notices with Stylish
<?php
// Add Meta-Boxes
add_action( 'add_meta_boxes', 'waves_and_rocks_add_custom_meta_boxes' );
// Save CSS Box
add_action( 'save_post', 'waves_and_rocks_save_meta_boxes' );
// Add CSS to the Content
add_filter( 'the_content', 'waves_and_rocks_custom_css_the_content_filter' );
<?php
/* ATTENTION!
* This Script is intended for redirect Use only.
*/
// Boot Wordpress
// Raise memory
define( 'WP_MEMORY_LIMIT','2G' );
ini_set( 'memory_limit', '-1' );
//
// Palasthotel
//
// Export style to show one-sided, DinA4 PDFs
//
// Visit http://www.ulyssesapp.com/styles
// for full reference
//
@benthebear
benthebear / waves-and-rocks.php
Created September 2, 2016 07:35
Waves and Rocks Plugin
<?php
/**
* Plugin Name: Waves and Rocks
* Description: A Plugin with several Features for my Blog
* Version: 0.9i
* Author: Benjamin Birkenhake
* Author URI: http://ben.grim.rocks
*/
/*
@benthebear
benthebear / user-addons.php
Last active February 17, 2016 10:51
user-addons.php
<?php
/**
* Plugin Name: User Addons
* Description: Adds custom User Meta Fields in Backend
* Version: 1.0
* Author: PALASTHOTEL (in Person: Benjamin Birkenhake)
* Author URI: http://www.palasthotel.de
* Text Domain: user_addons
*/
/*
* Draws a new card in the document <body>.
*/
function renderPainting() {
var postings = [
{
pictureName: 'Starry Night',
artist: 'Vincent van Gogh',
year: 1889,
image: '1.jpg'
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="cards.css">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Vollkorn" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
</head>
<body>
Handling Folder Afrika with 253 children
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boellde/documentLibrary/wcm/editorial-website/root/de/Startseite/Weltweit :: Afrika
Working on D:ws:article in /Sites/boell