Skip to content

Instantly share code, notes, and snippets.

Matt Davis mattcdavis1

Block or report user

Report or block mattcdavis1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mattcdavis1 / GoogleDocsReplaceAllFail.php
Last active Apr 5, 2019
Google Docs Replace Fails
View GoogleDocsReplaceAllFail.php
namespace App\Console\Commands\Google;
use Google_Client;
use Google_Http_Batch;
use Google_Service_Docs_BatchUpdateDocumentRequest;
use Google_Service_Docs_ReplaceAllTextRequest;
use Google_Service_Docs_SubstringMatchCriteria;
use Google_Service_Docs;
View alert.scss
.alert {
border: 1px solid transparent;
border-radius: .25rem;
display: flex;
left: 0;
margin-bottom: 1rem;
padding: .75rem 1.25rem;
position: fixed;
position: relative;
right: 0;
mattcdavis1 / adwordsPhoneReplacement.html
Last active Jan 28, 2018
Adwords Phone Replacement
View adwordsPhoneReplacement.html
<script type="text/javascript">
(function() {
var pageId =;
var trackedAdwords = false;
var tracker = {
track: function () {
if (trackedAdwords) {
View BaseAssetSourceType.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
View TNTIndexer.php
namespace TeamTNT\TNTSearch\Indexer;
use Exception;
use PDO;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use TeamTNT\TNTSearch\Connectors\FileSystemConnector;
use TeamTNT\TNTSearch\Connectors\MySqlConnector;
mattcdavis1 / standards.scss
Created May 24, 2017
Union Coding Standards - SASS
View standards.scss
.MyModule {
// attributes (alphabetical)
background: blue;
// pseudo
&:before {
// tag children (alphabetical)
div {
View netcore.json
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
View CacheAssetUrl.php
<?php namespace Union\Events\OnSaveEntry;
use Craft\EntryModel;
use Craft\ElementType;
use function Craft\craft;
class PhotoAlbumsListener
protected $entry;
mattcdavis1 / suit.sass
Created Mar 17, 2016
Suit CSS Cheat Sheet
View suit.sass
// attributes (alphabetical)
background: blue;
// pseudo
&:before {
View strikethrough.js
$.Redactor.prototype.strikethrough = function()
return {
init: function() {
var button = this.button.add('strikethrough', 'Strikethrough');
this.button.setAwesome('strikethrough', 'fa-strikethrough');
You can’t perform that action at this time.