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 / 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
# 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
@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 / 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 / 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 / loop.js
Created September 25, 2013 12:43
Loop keyframes After Effects
loop_Out("cycle",0)
@psql
psql / Future.html
Created September 18, 2013 10:56
Future list
<html>
<head>
<title>The Future</title>
<script type="text/javascript" src="//use.typekit.net/rfz5cki.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
// LOAD file and split line by line and append divs
$.get('https://dl.dropboxusercontent.com/u/36496/future/Do.txt', function(data) {
@psql
psql / countdown.js
Created September 16, 2013 16:41
Javascript countdown
<script type="text/javascript">
today = new Date();
BigDay = new Date("December 22, 2013");
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
document.write(daysLeft + " days till San Francisco!");
@psql
psql / stellar avatar override
Last active December 22, 2015 02:49
over-ride avatar with just css!
/*Over-ride user avatar*/
#avatar.user img {
display: block;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url(http://static.tumblr.com/hwdkyha/iGomsgm1o/bunny.gif) no-repeat; /*Change img path, obviouslyr*/
background-size: 80px 80px;
border: 0;
width: 80px; /* Width of new image */