Skip to content

Instantly share code, notes, and snippets.

Hendrik Werner hendrikeng

  • WeWereYoung
  • Hamburg, Germany
Block or report user

Report or block hendrikeng

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hendrikeng / FriendsDiscountAdjuster.php
Last active Sep 20, 2019
Discount Plugin and Adjuster
View FriendsDiscountAdjuster.php
namespace craft\commerce\adjusters;
use Craft;
use craft\commerce\base\AdjusterInterface;
use craft\commerce\elements\Order;
use craft\commerce\models\OrderAdjustment;
use craft\commerce\Plugin;
View que.log
2018-09-08 16:08:42 [-][-][-][info][yii\db\Connection::open] Opening DB connection: mysql:host=localhost;dbname=wfw;port=3306;
2018-09-08 16:08:42 [-][-][-][profile begin][yii\db\Connection::open] Opening DB connection: mysql:host=localhost;dbname=wfw;port=3306;
2018-09-08 16:08:42 [-][-][-][profile end][yii\db\Connection::open] Opening DB connection: mysql:host=localhost;dbname=wfw;port=3306;
2018-09-08 16:08:42 [-][-][-][info][yii\db\Command::query] SHOW TABLES
2018-09-08 16:08:42 [-][-][-][profile begin][yii\db\Command::query] SHOW TABLES
2018-09-08 16:08:42 [-][-][-][profile end][yii\db\Command::query] SHOW TABLES
2018-09-08 16:08:42 [-][-][-][info][yii\db\Command::query] SELECT *
FROM `info`
2018-09-08 16:08:42 [-][-][-][profile begin][yii\db\Command::query] SELECT *
hendrikeng / Stylefile.yml
Created Jul 31, 2018
Customizations for via StyleURL.
View Stylefile.yml
version: 1.0
timestamp: '2018-07-31T10:56:09Z'
id: FwMJ
shared_via: StyleURL - ( import and export CSS changes from Chrome
View Craft 3 - Imager
{# @var craft \craft\web\twig\variables\CraftVariable #}
{# @var entry \craft\elements\Entry #}
{% set image = %}
{% set options = opt.imager %}
{% set defaults = {
sizes: [
{ width: 1440 },
{ width: 900 },
View footer.svg
hendrikeng / schema-org-structured-data-markup-using-microdata.html An example of how to mark up a HTML5 webpage using the schemas and microdata.
View schema-org-structured-data-markup-using-microdata.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">
hendrikeng / import-github-labels.js
Created May 15, 2017 — forked from Isaddo/import-github-labels.js
import github labels via console command
View import-github-labels.js
Go on your labels page (
Edit the following label array
Use this snippet to export github labels (
and replace it
Paste this script in your console
Press Enter!!
hendrikeng / _lazyFocusImager.twig
Last active Jan 13, 2020
Twig/Craft macro for lazy responsive images/bgimages with Imager and Focuspoint
View _lazyFocusImager.twig
// lazyLoaded Image/bgImages, optimized with Imager and Focuspoint
for the bgImage intrinsic ratio classname creation check:
hendrikeng / cloudSettings
Last active Dec 5, 2018
Visual Studio Code Sync Settings Gist
View cloudSettings
You can’t perform that action at this time.