Skip to content

Instantly share code, notes, and snippets.

@wormeyman
wormeyman / Countdown_Timer.jsx
Last active September 29, 2020 19:15
After Effects Countdown Timer
// Created by steven mitchell
// http://www.icthusproductions.com
// 07FEB2009
// Countdown timer for After Effects, displays timer in Minutes and seconds instead of frames.
// Place in C:\Program Files\Adobe\Adobe After Effects [version]\Support Files\Scripts
// if you wish it to show up in script menu.
var vMin = prompt("How many Minutes", "5");
var vString;
var myProj = app.project;
var myComp = myProj.activeItem;
@wormeyman
wormeyman / settings.json
Created May 6, 2020 17:27
My Windows Terminal Settings
// This file was initially generated by Windows Terminal 0.11.1191.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@wormeyman
wormeyman / js.js
Last active April 10, 2020 18:08
Basic JavaScript: Chaining If Else Statements
//https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements
function testSize(num) {
// Only change code below this line
if (num >= 20) {
return "Huge";
}
else if (num < 5) {
return "Tiny";
}
else if (num < 10) {
@wormeyman
wormeyman / fcc-test-suite-eric-j.markdown
Created April 7, 2020 17:34
FCC: Test Suite - Eric J
@wormeyman
wormeyman / Source_Code_Pro_Powershell_font.ps1
Last active March 10, 2020 10:26
Set Adobe's Source Code Pro as a PowerShell font option.
#Reference: http://michaellwest.blogspot.com/2013/03/add-font-to-powershell-console.html
#Reference: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q247815 This explains why we name it 000
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' #Get the properties of TTF
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' -Name 000 -Value 'Source Code Pro' #Set it to SCP
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' #Check to see if we properly set it so that SCP is an option
#!/usr/bin/env sh
#You may need to enable the Universe Repository
# Last updated 2019-07-17 11:47:49
echo "******************************************************************"
echo "Tools for Ubuntu WSL"
echo "******************************************************************"
echo "Adding Git PPA"
echo "******************************************************************"
sudo add-apt-repository -y ppa:git-core/ppa
echo "******************************************************************"
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:9 JQMIGRATE: Migrate is installed, version 1.4.1
load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,wp-backbone,media-models,wp-p&load[]=lupload,wp-mediaelement,media-views&ver=5.0.3:43 Uncaught TypeError: this.activateMode is not a function
at load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,wp-backbone,media-models,wp-p&load[]=lupload,wp-mediaelement,media-views&ver=5.0.3:43
at s (blocks.build.js?ver=1550101267:1)
at Function.ss (blocks.build.js?ver=1550101267:1)
at n._createModes (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,wp-backbone,media-models,wp-p&load[]=lupload,wp-mediaelement,media-views&ver=5.0.3:43)
at n.initialize (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,he
// Alert on Staging Site
// http://stackoverflow.com/questions/6522023/php-if-domain
$host = $_SERVER['HTTP_HOST'];
if ($host != 'XXXXXXXXXX.com') {
function staging_admin_error_notice()
{
$class = "error";
$message = "You are on the staging site.";
echo"<div class=\"$class\"> <h1>$message</h1></div>";
}
/* #Custom Styles
================================================== */
/* Change to red buttons. */
.swatch_options input:checked+.swatch-element {
border: 1px solid #e83e31;
background-color: #e83e31;
color: #ffffff;