Skip to content

Instantly share code, notes, and snippets.

View zlovatt's full-sized avatar

Zack Lovatt zlovatt

View GitHub Profile
class PathMe {
moves: string[] = [];
constructor() {
this.moves = [];
return this;
}
moveTo(x: number, y: number) {
# https://www.geeksforgeeks.org/python-tweepy-getting-the-id-of-a-user/
import tweepy
import json
import time
import urllib.request
# You get these from https://developer.twitter.com/en/apps
# New signups at https://developer.twitter.com
consumer_key = ""
@Klustre
Klustre / README.md
Last active April 4, 2023 16:08
Generate a KBar toolbar

node-kbar

Generate a KBar toolbar with NodeJS

Note: This only creates script buttons with SVG icons and a single script file

Why?

Manually creating a toolbar for every product update is tedious. Save time and avoid release anxiety by automating it.

Usage

// Use if there is *no* time remapping in parent comp.
parentComp = comp("# Main");
compStartTimeInParent = parentComp.layer(thisComp.name).startTime;
audioStartTimeInParent = parentComp.layer(thisLayer.name).startTime;
fullStartTime = this.startTime;
fullEndTime = this.source.duration+startTime;
linear(time, fullStartTime, fullEndTime, fullStartTime+compStartTimeInParent-audioStartTimeInParent, fullEndTime+compStartTimeInParent-audioStartTimeInParent)
@rafikhan
rafikhan / README.md
Last active August 10, 2016 18:31
Google Analytics Component for CEP that plays nicely with the AESP licensing framework

Notes

This snippet contains the code necessary to make google analytics calls from your extension.
It plays nicely with the AESP licensing framework so if the user decides to disable analytics this component will honor that automatically. You don't need to do anything special to make that behavior work. Just call the analytics functions assuming the user granted permission and if they didn't the calls will do a no-op internally.

Warning

This code came straight out of the code for After Ease, is designed for its taxonomy/ontology and wasn't meant for distribution. As such you'll want to massage it before using it. For