Skip to content

Instantly share code, notes, and snippets.

View JonasDoebertin's full-sized avatar
👨‍💻
Converting coffee to code

Jonas Döbertin JonasDoebertin

👨‍💻
Converting coffee to code
View GitHub Profile
@JonasDoebertin
JonasDoebertin / basic-usage.js
Last active May 28, 2021 12:16
Building a global event bus for Vue.js
// Using the most basic event bus
import Vue from 'vue';
import Bus from './basic';
Vue.component('my-first-component', {
methods: {
sampleClickAction() {
Bus.$emit('my-sample-event');
}
.u-fs-100 {
flex: 1 0 0;
}
.u-fs-10a {
flex: 1 0 auto;
}
.u-fs-200 {
flex: 2 0 0;
@JonasDoebertin
JonasDoebertin / CollectionServiceProvider.php
Last active July 12, 2016 08:40
Laravel Collection Macros
<?php
/**
* Copyright © 2015-2016 »jd« powered. All rights reserved.
*
* @copyright Copyright © 2015-2016 »jd« powered
* @link http://jd-powered.net
* @author Jonas Döbertin <hello@jd-powered.net>
*/
namespace App\Providers;
@JonasDoebertin
JonasDoebertin / plugin-pages.md
Last active August 29, 2015 14:23
About the getkirby-plugins.com plugin pages

About the Plugin Pages

After a plugin is added to getkirby-plugins.com it will get it's very own plugin page located at getkirby-plugins.com/<plugin-slug>. This page shows a nice overview of all important information about the plugin. Besides some static content (like the title, the subtitle and the brief description) that we added manually when adding your plugin to the site, there are also a few pieces of information that will be pulled in from external sources automatically. Below you may find everything you need to take advantage of this.

TL;DR

  • Host your plugin in its own repository on GitHub.
  • Tag releases.
  • Add a PLUGIN_INFO.md file with usage instructions within.
@JonasDoebertin
JonasDoebertin / support-policy.md
Created January 23, 2015 13:06
Envato Market Support Policy

As a buyer of one of my items from Envato Market you are perfectly entitled to request support for your purchased products. However, when sending your support request please always keep the following points in mind!

General Information

Envato staff looks over every item and checks for quality and compatibility before it is allowed to be sold on Envato Market. For authors, granting free support is not mandatory and every author can choose on his own to what extend he provides support.

Support Policy

I choose to opt-in into providing support for my items because I think that my items have a high quality code base and my customers deserve to be able to use them as advertised.

@JonasDoebertin
JonasDoebertin / readme.md
Last active December 30, 2015 19:29
XML Sitemap for Kirby CMS

sitemap.xml for Kirby CMS

Notes:

  • Remember to exclude the sitemap from caching, search and the sitemap itself!
@JonasDoebertin
JonasDoebertin / clearspooler.bat
Created November 2, 2012 16:04
Remove documents stuck in your Printer Queue
net stop spooler
cd %windir%\system32\spool\PRINTERS\
del /p *.spl
net start spooler
@JonasDoebertin
JonasDoebertin / gist:3999936
Created November 2, 2012 10:11
Sort emails by domain and mailbox
/**
* Sort an array with emails by their domains and mailbox
* ------------------------------------------------------
* Input:
* array(
* 'bbb@ccc.de',
* 'bbb@bbb.de',
* 'ccc@aaa.de',
* 'aaa@aaa.de',
* 'aaa@bbb.de'