Install MacPorts, ensure you install the proper version for your Mac. Afterwards, install the following packages required by EMS Flasher.
$ sudo port install pkgconfig
$ sudo port install libusb| import argparse | |
| import os | |
| import time | |
| import sys | |
| from openai import OpenAI | |
| def chunk_text(text, chunk_size=400, overlap=100): | |
| """Split text into overlapping chunks of roughly chunk_size characters.""" | |
| if len(text) <= chunk_size: | |
| return [text] |
| #!/bin/bash | |
| # https://gist.github.com/frederickk/d91751e88780ca0939e6bb344ad4dfcf | |
| # Usage | |
| # ./video-border-rotate.sh -i foo.mp4 -x 100 # Add 100px border on left and right | |
| # ./video-border-rotate.sh -i foo.mp4 -y 100 # Add 100px border on top and bottom | |
| # ./video-border-rotate.sh -i foo.mp4 -x 100 -y 150 # Add 100px border on left and right and 150px border on top and bottom | |
| sides | |
| # ./video-border-rotate.sh -i foo.mp4 -x 100 -y 150 -c "red" # Add 100px red border on left and right and 150px red border on top and bottom | |
| # ./video-border-rotate.sh -i foo.mp4 -r 1 # Rotate video 90 degrees clockwise |
Install MacPorts, ensure you install the proper version for your Mac. Afterwards, install the following packages required by EMS Flasher.
$ sudo port install pkgconfig
$ sudo port install libusb| # Download this file at https://www.dropbox.com/s/6et3x14akt9koqo/FooLayer.framer.zip?dl=0 | |
| # FooLayer.js is located in FooLayer.framer/modules/FooLayer.js | |
| FooLayer = require 'FooLayer' | |
| # 'Foo1' is defined for text, but 'Foo2' is displayed | |
| foo1 = new FooLayer | |
| bazProperty: 'Foo1' | |
| barProperties: | |
| backgroundColor: 'rgba(255, 0, 255, 0.2)' | |
| x: 100 |
| /** | |
| * FConfetti | |
| * Create CSS confetti | |
| * | |
| * Ken Frederick | |
| * [email protected] | |
| * | |
| * http://kennethfrederick.de/ | |
| * http://blog.kennethfrederick.de/ | |
| * |
| 'use strict'; | |
| /**! | |
| * FPreferences.js | |
| * | |
| * Ken Frederick | |
| * [email protected] | |
| * | |
| * http://kenfrederick.de/ | |
| * http://blog.kenfrederick.de/ |
| #!/usr/bin/env bash | |
| # | |
| # Ken Frederick | |
| # [email protected] | |
| # | |
| # http://kennethfrederick.de/ | |
| # http://blog.kennethfrederick.de/ | |
| # | |
| # A simple wrapper for running a local instance of Google's | |
| # Python AppEngine |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| var EasingFunctions = { | |
| // no easing, no acceleration | |
| linear: function (t) { return t }, | |
| // accelerating from zero velocity | |
| easeInQuad: function (t) { return t*t }, |
| /** | |
| * Weather.pde | |
| * processing | |
| * | |
| * Ken Frederick | |
| * [email protected] | |
| * | |
| * http://cargocollective.com/kenfrederick/ | |
| * http://kenfrederick.blogspot.com/ | |
| * |
| public class RecolorImage extends Thread { | |
| // ------------------------------------------------------------------------ | |
| // properties | |
| // ------------------------------------------------------------------------ | |
| private PImage src; | |
| private PImage newImg; | |
| private int[] palette; | |
| private int lo; |