Skip to content

Instantly share code, notes, and snippets.

View c4y's full-sized avatar

Oliver Lohoff c4y

View GitHub Profile
@c4y
c4y / Megamenu_Fade_Mootools
Created March 29, 2013 18:51
Megamenu Fade Mootools
<script>
window.addEvent("domready", function() {
$$("li.submenu").each(function(el){
el.addEvent("mouseenter", function(){
el.getElement("div.submenu").setStyles({
"display": "block",
"opacity": "0",
"left": "0"
});
el.getElement("div.submenu").fade("in");
(function($) {
$('a[href*=#]:not([href=#])').click(function()
{
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
|| location.hostname == this.hostname)
{
var target = $(this.hash),
headerHeight = $(".primary-header").height() + 5; // Get fixed header height
@c4y
c4y / AlertWebhooks.php
Last active November 7, 2021 10:37
Service
<?php
declare(strict_types=1);
namespace Sineos\UsbWatcher\Controller\Paddle;
use Contao\CoreBundle\Framework\ContaoFramework;
use Sineos\UsbWatcher\Payment\Paddle\Webhooks\HookFactory;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Container;
@c4y
c4y / _README.md
Last active January 4, 2024 16:50
Entwicklungsumgebung

Allgemeines

Auf der Suche nach der "perfekten" Entwicklungsumgebung für die Webentwicklung habe ich mir meine eigene Lösung gebaut.

Folgende Ziele waren mir dabei wichtig:

  • Nutzung eines Linux-Servers
  • Einsatz von Docker (Compose)
  • keine manuelle Änderung an DNS Einträgen
  • keine manuelle Konfiguration von vHost Einträgen