Skip to content

Instantly share code, notes, and snippets.

@jordanlambrecht
jordanlambrecht / index.html
Created Feb 13, 2021
Layered Pinning From Bottom - ScrollTrigger
View index.html
<header >
<section class="header-container blue">
<h1>Layered pinning from bottom</h1>
<p>A simple example where overlapping panels reveal from the bottom.</p>
<div class="scroll-down">Scroll down
<div class="arrow"></div>
</div>
</section>
</header>
@jordanlambrecht
jordanlambrecht / NorthBathroomAmbient.yaml
Created Feb 20, 2021
Home Assistant - Google Home - N Bathroom - Ambient Sounds To Poop To
View NorthBathroomAmbient.yaml
alias: Google Home - N Bathroom - Ambient Sounds To Poop To
description: 'After the N bathroom light has been on for 20s, Check to make sure GH is not in use, then set the volume to 0 and select an ambient track based on time of day, and cast it to the google home for 10 minutes.'
trigger:
- platform: device
type: turned_on
device_id: 43159d577b25076ba654bfbe4f07b252
entity_id: switch.north_bathroom_light
domain: switch
for:
hours: 0
@jordanlambrecht
jordanlambrecht / .gitignore
Created Jun 7, 2021
Jordan's Git Ignore Template
View .gitignore
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
# ignore everything in the root except the "wp-content" directory.
!wp-content/
# ignore everything in the "wp-content" directory, except:
@jordanlambrecht
jordanlambrecht / email-generator-result.php
Created Jul 30, 2021
Two php files that Pixel Bakery uses in conjunction to generate our employee's email signatures for Gmail.
View email-generator-result.php
<?php
$phoneInput = $_REQUEST['phonepretty'];
$phonePretty = preg_replace('/\D/', ' ', $phoneInput );
$phoneURL = preg_replace('/\D/', '', $phoneInput);
$name = $_REQUEST['name'];
$position = $_REQUEST['position'];
?>
View gist:460e356e05e2896688303c1729f40d76
npm init @vitejs/app
code .
echo "# pb-oct-2022" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:jordanlambrecht/pb-oct-2022.git
View CaseStudy.mdx

active: true client: Backcountry title: Gearhead Magic date: '2022-01' tags:

- 2d animation

- 3d animation

- Motion design

- 3d modeling

@jordanlambrecht
jordanlambrecht / autoDeleteGmail.js
Last active Apr 8, 2022
Auto Delete / Archive Emails in Gmail
View autoDeleteGmail.js
function autoDelete() {
console.log('Started autoDelete run.');
var delayDays = 2;
var maxDate = new Date();
maxDate.setDate(maxDate.getDate()-delayDays);
var label = GmailApp.getUserLabelByName("delete me");
var threads = label.getThreads();
if(threads.length > 0){
console.log('Found ' + threads.length + ' emails marked for deletion.');