Skip to content

Instantly share code, notes, and snippets.

View Sphiment's full-sized avatar
🥰

~Sphiment Sphiment

🥰
View GitHub Profile
@Sphiment
Sphiment / 3D rotation expression.txt
Created March 8, 2025 04:01
3D rotation expression
360 / 16 * (index - 1) + time * -20
@Sphiment
Sphiment / End of Ramp.txt
Last active January 12, 2025 20:51
Bend anchor point to the bottom of the layer - after effects expression
const rect = thisLayer.sourceRectAtTime();
if (thisLayer.text || thisLayer.content) {
[toComp([rect.left + rect.width / 2, rect.top])[0], toComp([rect.left + rect.width / 2, rect.top + rect.height])[1]];
} else {
[anchorPoint[0],anchorPoint[1] + rect.height/2 ]
}
@Sphiment
Sphiment / Start of Ramp.txt
Last active January 12, 2025 20:51
Bend anchor point to the top of the layer - after effects expression
const rect = thisLayer.sourceRectAtTime();
if (thisLayer.text || thisLayer.content) {
[toComp([rect.left + rect.width / 2, rect.top])[0], toComp([rect.left + rect.width / 2, rect.top])[1]];
} else {
[anchorPoint[0],anchorPoint[1] - rect.height/2 ]
}
@Sphiment
Sphiment / cleanup-win10.ps1
Created July 27, 2023 04:58 — forked from halkyon/cleanup-win10.ps1
Cleanup Windows 10 Powershell script
##
## Windows 10 cleanup script.
## Remove dodgy tracking settings, unneeded services, all apps, and optional features that come with Windows 10. Make it more like Windows 7.
## NOTE: this was tested on Creators Update (1703) and Fall Creators Update (1709). Some of this may not work as expected on newer versions.
##
## Instructions
## 1. Run this script (under Powershell as Administrator):
## powershell -ExectionPolicy Bypass .\cleanup-win10.ps1
## 2. Let it run through, you may see a few errors, this is normal
## 3. Reboot