Skip to content

Instantly share code, notes, and snippets.


Robert Wade treetop1500

  • Gray Loon Marketing Group
  • Evansville, Indiana
View GitHub Profile
View fouc-fix.txt
Fix for FOUC :
**At the top of your HTML:**
<!doctype html>
<style>html{visibility: hidden;opacity:0;}</style>
treetop1500 / issues.txt
Created Nov 7, 2018
Issue Label Master List
View issues.txt
ui/ux problem
help wanted
need client feedback
need client info
treetop1500 / AdminDashboardController.php
Created Sep 18, 2018
Easy Admin Controller Extension with Google Analytics Dashboard
View AdminDashboardController.php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Request;
use EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Google_Client;
use Google_Service_AnalyticsReporting;
class AdminDashboardController extends AdminController
treetop1500 / pre-commit
Created Sep 4, 2018
Git pre-commit hook for running phpunit functional and unit tests.
View pre-commit
echo "Running tests.. ";
exec('bin/phpunit', $output, $returnCode);
if ($returnCode !== 0) {
// Show full output
echo PHP_EOL . implode($output, PHP_EOL) . PHP_EOL;
echo "Aborting commit.." . PHP_EOL;
treetop1500 / _meta.html.twig
Last active Aug 24, 2018
Twig template for meta tags, titles and other head element meta data.
View _meta.html.twig
Relies mostly on a meta array containing appropriate values.
site_name is a parameter set as a Twig Global
default_share_image is a fallback parameter set as a Twig Global
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="index, follow" />
<meta property="og:type" content="website" />
treetop1500 / .adding-wkhtmltopdf-to-symfony-on-platform-with-knpsnappy-bundle
Last active Dec 30, 2018
KNP Snappy wkhtmltopdf configuration for
View .adding-wkhtmltopdf-to-symfony-on-platform-with-knpsnappy-bundle
# This file means nothing. It's just here to give the Gist a name I can understand.
# This configuration requires the KNP Snappy Bundle []
treetop1500 / 1. composer.json
Created Mar 21, 2018
Doctrine Fetch Any Number of Random Results
View 1. composer.json
"require": {
"luxifer/doctrine-functions": "~1.4",
treetop1500 / 1. composer.json
Last active May 9, 2020
Amazon S3 Force Download of Remote File with Symfony (AWS S3 PHP SDK V.3)
View 1. composer.json
"require": {
"aws/aws-sdk-php": "3.*"
treetop1500 / BaseFileType.php
Last active Mar 29, 2021
Vich Uploader Twig Fields
View BaseFileType.php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Vich\UploaderBundle\Form\Type\VichFileType;
treetop1500 / FroalaS3Service
Last active Oct 3, 2017
A helper service for uploading to S3 via Froala
View FroalaS3Service
* Created by PhpStorm.
* User:
* Date: 10/2/17
* Time: 12:18 PM
namespace Hoyt\UtilBundle;