Skip to content

Instantly share code, notes, and snippets.

View dougblackjr's full-sized avatar
:shipit:
Let's create opportunity and clear the path together! tripleNERDscore.net

Doug Black dougblackjr

:shipit:
Let's create opportunity and clear the path together! tripleNERDscore.net
View GitHub Profile
@dougblackjr
dougblackjr / doug.js
Last active July 21, 2020 14:04
Power my website with a gist
{
"reading": [
{
"title": "Cost of Discipleship",
"author": "Dietrich Bonhoeffer",
"link": "https://www.hoopladigital.com/title/11497519"
},
{
"title": "Forged in Rebellion",
"author": "Lucio Urtubia",
<?php
namespace App\Http\Middleware;
use Closure;
use Log;
class Cors
{
@dougblackjr
dougblackjr / code.html
Created January 21, 2021 10:17
Podcast Row
<!-- Take out the 4 links that were added and put this in there -->
<div style="display:flex;flex-wrap:wrap;justify-content:space-between;">
<a href="https://www.amazon.com/Lead-Up/dp/B08K59C8QK/ref=sr_1_1?dchild=1&amp;keywords=lead+up+calvary&amp;qid=1610678314&amp;sr=8-1"><img src="https://i.ibb.co/k1gr5m1/Amazon.png" width="100" height="100" alt="Amazon" border="0"></a>
<a href="https://podcasts.apple.com/us/podcast/lead-up/id1547285159"><img src="https://i.ibb.co/KG9S7wQ/Apple.png" width="100" height="100" alt="Apple" border="0"></a>
<a href="https://podcasts.google.com/feed/aHR0cHM6Ly9mZWVkcy5jYXB0aXZhdGUuZm0vbGVhZC11cA?sa=X&amp;ved=0CAMQ4aUDahcKEwiAivas9ZzuAhUAAAAAHQAAAAAQAQ&amp;hl=en"><img src="https://i.ibb.co/MhL1G8v/Google.png" width="100" height="100" alt="Google" border="0"></a>
<a href="https://open.spotify.com/show/5zw4yOizDVvSwHltsK70Zx"><img src="https://i.ibb.co/T8Dm1Qv/Spotify.png" width="100" height="100" alt="Spotify" border="0"></a>
</div>
@dougblackjr
dougblackjr / test.html
Created April 8, 2021 15:23
The Bee Movie, multiple times
This file has been truncated, but you can view the full file.
According to all known laws of aviation, there is no way that a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway. Because bees don’t care what humans think is impossible.” SEQ. 75 - “INTRO TO BARRY” INT. BENSON HOUSE - DAY ANGLE ON: Sneakers on the ground. Camera PANS UP to reveal BARRY BENSON’S BEDROOM ANGLE ON: Barry’s hand flipping through different sweaters in his closet. BARRY Yellow black, yellow black, yellow black, yellow black, yellow black, yellow black...oohh, black and yellow... ANGLE ON: Barry wearing the sweater he picked, looking in the mirror. BARRY (CONT’D) Yeah, let’s shake it up a little. He picks the black and yellow one. He then goes to the sink, takes the top off a CONTAINER OF HONEY, and puts some honey into his hair. He squirts some in his mouth and gargles. Then he takes the lid off the bottle, and rolls some on like deodorant. CUT TO: INT. BENSON HOUSE KITCHEN - CONTINUOUS Barry’s mother, JANET BENSON, yell
@dougblackjr
dougblackjr / example.php
Last active April 13, 2023 13:47
Clickup File Attachment via API
$yourApiToken = 'your-api-token';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.clickup.com/api/v2/task/{task_id}/attachment?custom_task_ids=&team_id=");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_POST, TRUE);
<?php
/**
* DataGrab File Grid fieldtype class
*
* @package DataGrab
* @author Andrew Weaver <aweaver@brandnewbox.co.uk>
* @copyright Copyright (c) Andrew Weaver
*/
class Datagrab_file_grid extends Datagrab_fieldtype
Hello.
<h1>RAW</h1>
---
__Advertisement :)__
- __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image
resize in browser.
- __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly
@dougblackjr
dougblackjr / just-animate-it.css
Created February 1, 2023 11:51
Just Animate It
img, video, h1,h2,h3,h4,h5,h6,p,span {
-webkit-animation:spin 1s linear infinite;
-moz-animation:spin 1s linear infinite;
animation:spin 1s linear infinite;
}
@-moz-keyframes spin {
100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
100% { -webkit-transform: rotate(360deg); }
@dougblackjr
dougblackjr / LocalValetDriver.php
Created October 24, 2023 19:50
ExpressionEngine Location Valet Driver - 2023
<?php
use Valet\Drivers\LaravelValetDriver;
class LocalValetDriver extends LaravelValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath