Skip to content

Instantly share code, notes, and snippets.

View psql's full-sized avatar
🏝️
aloha

Professor P psql

🏝️
aloha
View GitHub Profile
@psql
psql / looper.jsx
Created September 25, 2013 15:53
Looper for after effects
@JSXBIN@ES@1.0@MgfbyBnAIMkbbyBn0ADOkdbyken0ABJkenASzFjNjZiQjBjMBAVzHjUjIjJjTiPjC
jKCCnftACzKjJjOjTjUjBjOjDjFjPjGDVCCjzFiQjBjOjFjMEnnbylAn0ABJlAnASBAEjzGiXjJjOjE
jPjXFREFeHjQjBjMjFjUjUjFCzBhLGCGjzLjTjDjSjJjQjUiUjJjUjMjFHnneBhAjzNjTjDjSjJjQjU
iWjFjSjTjJjPjOInnjzJjVjOjEjFjGjJjOjFjEJWzGiPjCjKjFjDjUKBzKjSjFjTjJjajFjBjCjMjFL
FcfftnftOlDblFn0AMJlFnASzDjSjFjTMBCGCGCGCGCGCGCGCGnEjzMjUjMjNifjMjPjDjBjMjJjajF
NRBXzSjEjJjTjTjPjMjWjFiMjFjOjHjUjIiUjFjYjUOjzIjUjMjNifjEjBjUjBPffemGjHjSjPjVjQh
AjbhAKJJJJJjPjSjJjFjOjUjBjUjJjPjOhahAhHjDjPjMjVjNjOhHhMhAKJJJJJjBjMjJjHjOjNjFjO
jUhaibhHjMjFjGjUhHhMhHjUjPjQhHidhMhAKJJJJJjBjMjJjHjOiDjIjJjMjEjSjFjOhaibhHjMjFj
GjUhHhMhHjUjPjQhHidhMhAKJJJJJjMjFjOjHjUjIhahAiHjSjPjVjQhAjbhAKJJJJJJjPjSjJjFjOj
UjBjUjJjPjOhahAhHjSjPjXhHhMhAKJJJJJJjEjJjTjTjPjMjWjFiMjFjOjHjUjIiUjYjUhahAiTjUj
@psql
psql / Sound Key Scale Helper.js
Last active December 27, 2015 00:58
Add randomness to Sound Keys
soundKeyRaw = comp("Wide01 Comp 1").layer("SoundKeys").effect("Sound Keys")("Output 1");
pulse = soundKeyRaw + value[0] ;
[pulse, pulse]
@psql
psql / profile.bash
Created November 6, 2013 19:17
Bash Profile
# make ls colorful
export CLICOLOR=1
#git branch in path
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
@psql
psql / .gitconfig
Created November 8, 2013 20:36
Gitconfig
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
# make ls colorful
export CLICOLOR=1
#git branch in path
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
@psql
psql / gist:7493944
Created November 16, 2013 00:05
AE wiggle keyframes
Adobe After Effects 8.0 Keyframe Data
Units Per Second 25
Source Width 1
Source Height 1
Source Pixel Aspect Ratio 1
Comp Pixel Aspect Ratio 1
Transform X Position
Frame
@psql
psql / Round Time.js
Created January 6, 2014 20:40
Frames to rounded value After Effects
"SECONDS: " + (timeToFrames()/24).toFixed(3)
@psql
psql / xposition .js
Created January 8, 2014 23:24
Scale based on x position threshold
L = thisComp.layer("circle 25");
childPos= L.toWorld(L.anchorPoint);
if (childPos[0] < 200){
[100,100];
}
else{
[50,50]
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SKVariables</key>
<array>
<dict>
<key>enabled</key>
<true/>
<key>name</key>
@psql
psql / patches.js
Created February 4, 2014 05:16
Unreleased FB QC patches
> (null)
<QCNodeManager | namespace = "com.apple.QuartzComposer" | 501 nodes>: Patch with name "FBDeviceRendererPatch" is missing
> Macro Patch
Cannot create node of class "FBDeviceRendererPatch" and identifier "(null)"
> (null)
<QCNodeManager | namespace = "com.apple.QuartzComposer" | 501 nodes>: Patch with name "FBImageSendTCPPatch" is missing
> Macro Patch