Skip to content

Instantly share code, notes, and snippets.

View digitaldesigndj's full-sized avatar
🦕
JavaScript

Taylor Young digitaldesigndj

🦕
JavaScript
View GitHub Profile
@digitaldesigndj
digitaldesigndj / the_thing.sh
Last active April 10, 2018 16:16
Pantheon WP CLI Terminus Search Replace
#!/bin/bash
terminus wp 'search-replace live-serviceaide.pantheonsite.io dev-serviceaide.pantheon.io --skip-columns=guid' --site=wordpress --env=dev
@digitaldesigndj
digitaldesigndj / bug-every-one-of-your-friends-with-this-fundraiser.js
Created March 20, 2020 18:50
Click All Friends to add to FaceBook fundraiser
// jquery?
// Get array of elements
// Map the click
@digitaldesigndj
digitaldesigndj / _middleware.js
Last active August 20, 2022 03:42
Fresh Redis Session Middleware
// routes/_middleware.js
import { cyan, green, yellow } from "$std/fmt/colors.ts";
import { getCookies, setCookie } from "$std/http/cookie.ts";
import { config } from "$std/dotenv/mod.ts";
import * as redis from "redis";
// import_map.json
// "@/": "./",
// "$std/": "https://deno.land/std@0.152.0/",
// "redis": "https://deno.land/x/redis@v0.26.0/mod.ts",