Skip to content

Instantly share code, notes, and snippets.

View loranallensmith's full-sized avatar
👨‍🌾
Gardening.

Allen Smith loranallensmith

👨‍🌾
Gardening.
View GitHub Profile
@loranallensmith
loranallensmith / umbraco.me
Created June 30, 2023 15:02
Bash Script for Generating a Quick Umbraco Site
#! /usr/bin/env sh
# This script generates an unattended install of an Umbraco project for development purposes.
# It takes a single argument, which it uses as the name of the project.
# Usage: umbraco.me {your-project-name}
#
# The credentials for the backoffice are as follows:
# Email: admin@admin.local
# Password: password123
#
@loranallensmith
loranallensmith / create-monthfolders.ps1
Created December 16, 2020 15:28
PowerShell Script to Create Numbered Monthly Folders for Organization
# PowerShell Script to Create Numbered Monthly Folders for Storage
# Written by Allen Smith (@loranallensmith)
#
# Takes one parameter -- the start month -- which allows for numbering folders based on fiscal years rather than calendar years.  The default is 1 for January.
Param(
    [int]$startMonth = 1
)
@loranallensmith
loranallensmith / builder.js
Created March 26, 2020 16:01
JavaScript Example
/**
* Household Builder
*/
/**
* Model Layer
*/
/**
@loranallensmith
loranallensmith / gist.md
Created May 2, 2019 19:27
Gists are great

Well, they are.

@loranallensmith
loranallensmith / scaling-font-size.md
Last active April 12, 2021 09:30
Auto Scaling Font Size in After Effects

Auto-scaling fonts in After Effects

This Gist contains a simple expression for auto scaling the size of text layers to fit a composition based on the size of their text content. This is similar to the behavior in programs like Keynote, where the font size automatically scales down as you type more content.

How to do it

Set things up

Set up your composition and add your text layer. You'll want to get a baseline font size for things, so enter a bit of text and size it to look the way you want that amount of text to look. This is more of an art than a science, so go with your ❤️ here. 💪

Make the scale property dynamic