Skip to content

Instantly share code, notes, and snippets.

View potofcoffee's full-sized avatar

Christoph Fischer potofcoffee

View GitHub Profile
@potofcoffee
potofcoffee / fix_pixabay_results.js
Created August 11, 2020 09:00
Fix search results on Pixabay not showing images (GreaseMonkey script)
// ==UserScript==
// @name Show Image Results on Pixabay (FIX)
// @version 1
// @grant none
// @include https://pixabay.com/*
// ==/UserScript==
var $ = unsafeWindow.jQuery;
$('.flex_grid .item').css('display', 'block');
@potofcoffee
potofcoffee / GemeindeBriefModul.vba
Created January 31, 2019 08:42
VBA Macro exporting services from a district service plan
' Findet alle Einträge zu einer bestimmten Person
' (c) Christoph Fischer, christoph.fischer@elkw.de
' v.1.00
'
' Aktuelle Version jeweils auf:
'
' CHANGELOG
'
' 2019-01-31 1.00 Erste funktionierende Version
Sub ExportForBulletin(control As IRibbonControl)
@potofcoffee
potofcoffee / Modul1.vba
Last active December 8, 2018 14:30
VBA Macro extracting individual services list from a district service plan in Excel
' Findet alle Einträge zu einer bestimmten Person
' (c) Christoph Fischer, christoph.fischer@elkw.de
' v.1.10
'
' Aktuelle Version jeweils auf:
' https://gist.github.com/potofcoffee/b85039f72e4bc6eb255c1ca3a2a6d491
'
' CHANGELOG
'
' 2018-12-08 1.10 Gist angelegt und Verweis mit aufgenommen
@potofcoffee
potofcoffee / MyController.php
Last active December 30, 2016 11:05
Initializing a Fluid view
<?php
// [...]
$this->view = new \TYPO3Fluid\Fluid\View\TemplateView();
$paths = $this->view->getTemplatePaths();
$paths->setTemplateRootPaths([
$this->app->getTemplatesPath(),
$this->module->getBasePath() . 'Resources/Private/Templates/'
@potofcoffee
potofcoffee / gist:93ff525321624aaf1c8e
Created July 6, 2015 10:29
Google Maps grayscale
[ { "featureType": "road", "elementType": "labels", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi", "stylers": [ { "visibility": "off" } ] },{ "featureType": "landscape", "stylers": [ { "color": "#ffffff" } ] },{ "featureType": "water", "stylers": [ { "color": "#808080" } ] },{ "featureType": "road", "stylers": [ { "visibility": "off" } ] },{ "featureType": "road.highway", "elementType": "geometry", "stylers": [ { "visibility": "on" }, { "color": "#cccccc" } ] },{ "featureType": "administrative.country", "stylers": [ { "color": "#000000" } ] },{ "featureType": "administrative.country", "elementType": "labels", "stylers": [ { "color": "#000000" }, { "weight": 3.6 }, { "visibility": "off" } ] },{ "featureType": "administrative.province", "elementType": "geometry", "stylers": [ { "color": "#000000" }, { "weight": 3.5 } ] } ]
@potofcoffee
potofcoffee / gist:ba0a33f73fe2914e1186
Created May 14, 2015 09:30
TYPO3: Dump a variable or object
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($var);
<f:layout name="Content" />
<f:render section="Main" />
@potofcoffee
potofcoffee / gist:f51b80994932738a730b
Created March 20, 2015 11:49
Custom content object
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
flux:schemaLocation="https://fluidtypo3.org/schemas/flux-master.xsd">
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="test" options="{icon: 'Icons/Content/Example.gif', group: 'FCE'}">
@potofcoffee
potofcoffee / StrftimeViewHelper.php
Last active August 29, 2015 13:59
Generic strftime viewhelper for TYPO3 CMS 6.0 / Fluid
<?php
namespace VENDOR\ExtensionName\ViewHelpers;
/**
* Formats a Timestamp or DateTime-Object in strftime()
* @api
*/
class StrftimeViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {