Skip to content

Instantly share code, notes, and snippets.

View Radiergummi's full-sized avatar
💻
Yes of course I can implement that 🥲

Moritz Friedrich Radiergummi

💻
Yes of course I can implement that 🥲
View GitHub Profile
@Radiergummi
Radiergummi / laroute.vue.js
Last active September 18, 2018 09:58
This is a simple Vue plugin implementation of Laroute
'use strict';
//noinspection JSFileReferences
/**
* This is a generic HTTP module such as axios, which needs to be defined by the user.
* Maybe as a config setting?
*/
import http from './modules/http';
/**
@Radiergummi
Radiergummi / Api.php
Last active September 16, 2017 07:12
CraftCMS API Wrapper class
<?php
namespace Craft;
use Closure;
use function array_merge;
/**
* API endpoints wrapper
*
@Radiergummi
Radiergummi / drag.js
Created May 15, 2017 12:49
DripDrop rewrite ES6 + eventEmitter
// node - The dom node to set as a drag handle
// options
// image - Can take on one of the following possible values:
// false - (Default) No image
// true - The default generated drag image
// string - The path to an image
// imageObject - If this is an Image object, that will be used
// start(setData, e) - Called when dragging starts. Use setData to set the data for each type.
// setData(type, data) - Sets data for a particular type.
@Radiergummi
Radiergummi / gist:05940a00f805d7581ce5a4cbe66f1d05
Created May 3, 2017 11:56 — forked from sprankhub/gist:a386a2969ca7cc6f6552
Fish Shell Autocompletion for the Magento 2 Shell Script
# Installation:
# Copy to ~/.config/fish/completions/magento.fish
# Open new or restart existing shell session
# Commands based on Magento 2.0.0-rc and the command
# bin/magento --raw --no-ansi list
# It is a static list since you probably do not have the magento shell script
# in your path.
complete -f -c magento -s h -l help -d "Displays help for a command";
complete -f -c magento -s q -l quiet -d "Do not output any message";
@Radiergummi
Radiergummi / 6379.conf
Created January 12, 2016 16:13
Current redis configuration
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes