Skip to content

Instantly share code, notes, and snippets.

View nielsmouthaan's full-sized avatar

Niels Mouthaan nielsmouthaan

View GitHub Profile
@nielsmouthaan
nielsmouthaan / RefererController.php
Created December 19, 2023 08:13
PHP/Laravel-based controller to add the referrer as campaign name to the download link pointing to the App Store
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Cookie;
class Referer extends AbstractController
{

This gist shows how to add a tooltip including a button to show it in a header of a table created using SwiftUI. It is used in ASO Suite.

Clean-Shot-2023-05-12-at-08-39-08-2x.png

@nielsmouthaan
nielsmouthaan / MonoLogger.php
Created October 10, 2012 22:05
Riverline\DynamoDBBundle class for MonoLogger
<?php
namespace Acme\DemoBundle\Logger;
class MonoLogger implements \Riverline\DynamoDB\Logger\Logger
{
protected $logger;
protected $minLevel;
@nielsmouthaan
nielsmouthaan / MenuBuilder.php
Created September 22, 2012 10:21
Custom KnpMenuBundle navigation bar twig template to support Font Awesome icons & Twitter bootstrap lay-out
<?php
namespace Acme\HelloBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class MenuBuilder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)