Skip to content

Instantly share code, notes, and snippets.

View davidhellmann's full-sized avatar
🤔
Focusing

David Hellmann davidhellmann

🤔
Focusing
View GitHub Profile
@davidhellmann
davidhellmann / Stylefile.yml
Created July 31, 2018 10:51
Customizations for neubau-eyewear.com via StyleURL.
---
version: 1.0
domains:
- neubau-eyewear.com
url_patterns:
- neubau-eyewear.com/*
timestamp: '2018-07-31T10:50:38Z'
id: X_3N
redirect_url: https://neubau-eyewear.com/
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome
@davidhellmann
davidhellmann / Craft3ValetDriver.php
Created August 1, 2018 09:25 — forked from Chrisedmo/Craft3ValetDriver.php
Craft 3 Composer Install Valet Driver
<?php
class Craft3ValetDriver extends ValetDriver
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
#!/bin/sh
echo
echo
echo
echo ' /$$$$$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$'
echo ' /$$__ $$ /$$__ $$ | $$ | $$__ $$| $$ |__/'
echo ' | $$ \__/ /$$$$$$ /$$$$$$ | $$ \__//$$$$$$ | $$ \ $$| $$ /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$$$$$$'
echo ' | $$ /$$__ $$|____ $$| $$$$ |_ $$_/ | $$$$$$$/| $$| $$ | $$ /$$__ $$| $$| $$__ $$ /$$_____/'
echo ' | $$ | $$ \__/ /$$$$$$$| $$_/ | $$ | $$____/ | $$| $$ | $$| $$ \ $$| $$| $$ \ $$| $$$$$$'
echo ' | $$ $$| $$ /$$__ $$| $$ | $$ /$$ | $$ | $$| $$ | $$| $$ | $$| $$| $$ | $$ \____ $$'
<template>
<div :class="`${cn}`">
<div :class="`${cn}__slider`" ref="sliderWrapper" @mousemove="setCursor">
<Navigation :class="`${cn}__navigation`">
asd
</Navigation>
<div :class="`${cn}__sliderSlide`"
ref="sliderSlide"
:style="`transform: translateX(${getLastXPosition}px);`">
<!-- Slider Content -->
{# @var craft \craft\web\twig\variables\CraftVariable #}
{# @var entry \craft\elements\Entry #}
{#
Description of what this file is for
@package de.bistum-passau.www
@author David Hellmann [[email protected]]
e-boxArticlesAside
{# -- Block: Event Highlights -- #}
{% block eventHighlights %}
{% set currentDateString = now.format('Y-m-d') %}
{% set nextEvents = craft.entries()
.section('events')
.orderBy('startDate asc')
.limit(4)
.where('content.field_requiresParticipationFromBeginning = FALSE AND content.field_endDate IS NULL AND content.field_startDate >="' ~ currentDateString ~ '"')
.orWhere('content.field_requiresParticipationFromBeginning = FALSE AND content.field_endDate >= "' ~ currentDateString ~ '"')
.orWhere('content.field_requiresParticipationFromBeginning = TRUE AND content.field_startDate >"' ~ currentDateString ~ '"')
{# @var craft \craft\web\twig\variables\CraftVariable #}
{# @var entry \craft\elements\Entry #}
{#
Description of what this file is for
@package baukasten
@author David Hellmann [[email protected]]
o-contactForm
------------------------------------------------------------
<!--
Countdown
-->
<template>
<div :class="rootClass">
<div :class="`${cn}__col`">
<span :class="`${cn}__number`">{{ days }}</span>
<div :class="`${cn}__format`">{{ days === 1 ? 'Day' : 'Days' }}</div>
</div>
<div :class="`${cn}__col`">
/**
* Webpack Config
*
* @package generator-baukasten
* @author David Hellmann <[email protected]>
*/
import {BundleAnalyzerPlugin} from 'webpack-bundle-analyzer';
import {getIfUtils, removeEmpty} from 'webpack-config-utils';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
An Error occurred while handling another error:
craft\errors\SiteNotFoundException: No primary site exists in /Users/davidhellmann/___DEV/___Private/craft3/___dist/vendor/craftcms/cms/src/services/Sites.php:496
Stack trace:
#0 /Users/davidhellmann/___DEV/___Private/craft3/___dist/vendor/craftcms/cms/src/web/Request.php(1194): craft\services\Sites->getPrimarySite()
#1 /Users/davidhellmann/___DEV/___Private/craft3/___dist/vendor/craftcms/cms/src/web/Request.php(191): craft\web\Request->_requestedSite(Object(craft\services\Sites))
#2 /Users/davidhellmann/___DEV/___Private/craft3/___dist/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\web\Request->init()
#3 [internal function]: yii\base\BaseObject->__construct(Array)
#4 /Users/davidhellmann/___DEV/___Private/craft3/___dist/vendor/yiisoft/yii2/di/Container.php(384): ReflectionClass->newInstanceArgs(Array)
#5 /Users/davidhellmann/___DEV/___Private/craft3/___dist/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('craft\\web\\Reque...', Array, Ar