Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| # 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 = "" |
| # https://www.geeksforgeeks.org/python-tweepy-getting-the-id-of-a-user/ | |
| import tweepy | |
| consumer_key = "" | |
| consumer_secret = "" | |
| access_token = "" | |
| access_token_secret = "" | |
| auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
| // https://openprocessing.org/sketch/20534/# | |
| int dim = 50; | |
| int interval = int(dim * 0.4); | |
| void setup() { | |
| size (500, 500); | |
| println(dim + ", " + interval); | |
| noStroke(); | |
| } |
| I am attesting that this GitHub handle n1ckfg is linked to the Tezos account tz1Tk4FSuhQZ8aqNaGs49NZkuKV3MSYCnDPM for tzprofiles | |
| sig:edsigu4rCz5z3qP5byMkJayHaxFbcZxJJWVrP4f6vLwAdodAtXfHtmXthPmNNm2izzqmTqcK99KX4zMLyw2MmfENenjXZXjVnXP |
| # More on this file here: https://github.com/processing/processing/wiki/Library-Basics | |
| # UTF-8 supported. | |
| # The name of your library as you want it formatted. | |
| name = PixelFlow | |
| # List of authors. Links can be provided using the syntax [author name](url). | |
| authors = [Thomas Diewald](http://www.thomasdiewald.com) | |
| # A web page for your library, NOT a direct link to where to download it. |
| # https://coral.ai/docs/edgetpu/compiler/ | |
| sudo curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list | |
| sudo apt-get update | |
| sudo apt-get install edgetpu-compiler |
| import numpy as np | |
| def getIntrinsics(name="generic", mode="default"): | |
| name = name.lower() | |
| mode = mode.lower() | |
| # Generic | |
| # https://en.wikipedia.org/wiki/Camera_resectioning | |
| # https://docs.opencv.org/4.x/dc/d3a/classcv_1_1viz_1_1Camera.html#a753809aff611cdcc5a8a377126156b05 | |
| cx = 320 # principal point x |
| let heights = []; | |
| let moving_heights = []; | |
| let r = 0; | |
| function setup() { | |
| createCanvas(800, 400, WEBGL); | |
| for (let i=0; i<17; i++) { | |
| heights.push([]); | |
| moving_heights.push([]); | |
| for (let j=0; j<17; j++) { |
| float map(float value, float min1, float max1, float min2, float max2) { | |
| return min2 + (value - min1) * (max2 - min2) / (max1 - min1); | |
| } |