Skip to content

Instantly share code, notes, and snippets.

Let's create opportunity and clear the path together!

Doug Black dougblackjr

Let's create opportunity and clear the path together!
View GitHub Profile
dougblackjr / example.php
Created Jun 27, 2021
Clickup File Attachment via API
View example.php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "{task_id}/attachment?custom_task_ids=&team_id=");
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_POST, TRUE);
$filepath = '/path/to/file';
$file = curl_file_create($filepath, 'image/png', 'filename');
dougblackjr / test.html
Created Apr 8, 2021
The Bee Movie, multiple times
View test.html
This file has been truncated, but you can view the full file.
View code.html
<!-- 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=";keywords=lead+up+calvary&amp;qid=1610678314&amp;sr=8-1"><img src="" width="100" height="100" alt="Amazon" border="0"></a>
<a href=""><img src="" width="100" height="100" alt="Apple" border="0"></a>
<a href=";ved=0CAMQ4aUDahcKEwiAivas9ZzuAhUAAAAAHQAAAAAQAQ&amp;hl=en"><img src="" width="100" height="100" alt="Google" border="0"></a>
<a href=""><img src="" width="100" height="100" alt="Spotify" border="0"></a>
View Laravel Vapor CORS Middleware
namespace App\Http\Middleware;
use Closure;
use Log;
class Cors
dougblackjr / doug.js
Last active Jul 21, 2020
Power my website with a gist
View doug.js
"reading": [
"title": "Cost of Discipleship",
"author": "Dietrich Bonhoeffer",
"link": ""
"title": "Forged in Rebellion",
"author": "Lucio Urtubia",
dougblackjr / code.php
Created Jul 21, 2020
Caching Inside a CraftCMS Plugin
View code.php
// To cache a variable
// function add($key, $value, $secondsToCache)
dougblackjr / php-fpm-Dockerfile
Created May 3, 2020
Use PDFtk with Laradock
View php-fpm-Dockerfile
# ADD THESE LINES AFTER LINE 937, BEFORE Configure locale.
RUN mkdir -p /usr/share/man/man1mkdir -p /usr/share/man/man1
RUN apt-get update
RUN apt-get install -y openjdk-11-jdk
RUN apt-get install -y pdftk
dougblackjr / iframeLoader.js
Created Jul 26, 2019
Script to get the current query string variables and load them into the designated iframe (
View iframeLoader.js
const iframeLoader = {
baseUrl: '',
queryStrings: [
init: function(id) {
dougblackjr / index.js
Created Mar 8, 2019
SPY: Spies user interactions for sending back to server, or dumping to browser
View index.js
var Spy = (function (register, undefined) {
var eventStore = [],
events = ['click'];
var store = function (type, data) {
type: type,
data: data
dougblackjr / index.html
Created Jan 23, 2019
jQuery promise with deconstructed arrays
View index.html
<!-- The div we'll write stuff in -->
<div id="final">
<div class="event-wrap">
<span data-title="test-1">words</span>
<div class="event-wrap">
<span data-title="test-2">words</span>