Skip to content

Instantly share code, notes, and snippets.

View mattcdavis1's full-sized avatar

Matt Davis mattcdavis1

View GitHub Profile
Illuminate\Events\EventServiceProvider: 81.346 - ( 0.000 )
Illuminate\Routing\RoutingServiceProvider: 81.376 - ( 0.000 )
Illuminate\Auth\AuthServiceProvider: 81.391 - ( 0.000 )
Illuminate\Routing\ControllerServiceProvider: 81.405 - ( 0.000 )
Illuminate\Cookie\CookieServiceProvider: 81.419 - ( 0.000 )
Illuminate\Database\DatabaseServiceProvider: 84.428 - ( 0.003 )
Illuminate\Encryption\EncryptionServiceProvider: 84.452 - ( 0.000 )
Illuminate\Filesystem\FilesystemServiceProvider: 84.467 - ( 0.000 )
Illuminate\Foundation\Providers\FormRequestServiceProvider: 84.554 - ( 0.000 )
Illuminate\Foundation\Providers\FoundationServiceProvider: 84.571 - ( 0.000 )
@mattcdavis1
mattcdavis1 / export.ofx
Created April 12, 2015 01:09
Bank of America Credit Card OFX Export
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:NONE
@mattcdavis1
mattcdavis1 / strikethrough.js
Last active September 23, 2015 06:02
Strikethrough
$.Redactor.prototype.strikethrough = function()
{
return {
init: function() {
var button = this.button.add('strikethrough', 'Strikethrough');
this.button.setAwesome('strikethrough', 'fa-strikethrough');
this.button.addCallback(button, this.strikethrough.show);
@mattcdavis1
mattcdavis1 / suit.sass
Created March 17, 2016 18:31
Suit CSS Cheat Sheet
.MyModule
// attributes (alphabetical)
background: blue;
// pseudo
&:before {
}
@mattcdavis1
mattcdavis1 / CacheAssetUrl.php
Created March 30, 2016 17:03
Cache Asset Url
<?php namespace Union\Events\OnSaveEntry;
use Craft\EntryModel;
use Craft\ElementType;
use function Craft\craft;
class PhotoAlbumsListener
{
protected $entry;
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
@mattcdavis1
mattcdavis1 / standards.scss
Created May 24, 2017 18:49
Union Coding Standards - SASS
.MyModule {
// attributes (alphabetical)
background: blue;
// pseudo
&:before {
}
// tag children (alphabetical)
div {
<?php
namespace TeamTNT\TNTSearch\Indexer;
use Exception;
use PDO;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use TeamTNT\TNTSearch\Connectors\FileSystemConnector;
use TeamTNT\TNTSearch\Connectors\MySqlConnector;
@mattcdavis1
mattcdavis1 / BaseAssetSourceType.php
Created September 7, 2017 21:48
Craft Transform Issue
<?php
/**
* Copy a transform for a file from source location to target location.
*
* @param AssetFileModel $file The assetFileModel that has the transform to copy.
* @param string $targetFolderPath The target folder path.
* @param AssetTransformIndexModel $source The source transform index data.
* @param AssetTransformIndexModel $target The destination transform index data.
*
* @return mixed
@mattcdavis1
mattcdavis1 / adwordsPhoneReplacement.html
Last active January 28, 2018 00:45
Adwords Phone Replacement
<script type="text/javascript">
(function() {
var pageId = Date.now();
var trackedAdwords = false;
var tracker = {
track: function () {
if (trackedAdwords) {
return;
}