A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
THIS GIST IS OUT OF DATE! Please use my new project template here to get started with Zig on Playdate: | |
https://github.com/DanB91/Zig-Playdate-Template | |
The rest of this is preservied for historical reasons: | |
This is a small snippet of some code to get you started for developing for the Playdate on Zig. This code should be used as a starting point and may not compile without some massaging. This code has only been tested out on macOS and you'll need to modify the addSharedLibrary() portion of build.zig to output a .dll or .so instead of a .dylib, depending on you platform. | |
This code will help you produce both an executable for the Playdate simulator and also an executable that actually run on the Playdate hardware. |
rem see https://github.com/coreybutler/nvm-windows/issues/300 | |
@echo off | |
SETLOCAL EnableDelayedExpansion | |
if [%1] == [] ( | |
echo Pass in the version you would like to install, or "latest" to install the latest npm version. | |
) else ( | |
set wanted_version=%1 |
/* | |
Dimitre Lima 2019 | |
Uncompressed tiff writer for openFrameworks | |
Only for RGB888 big Endian | |
*/ | |
class tiffFastWriter { | |
public: |
// interpolate between colors { r, g, b } where 0 < t < 1 | |
// when assigning a color for a number in a range larger than 0-1, scale the number to the 0-1 range first | |
function lerpRGB(color1, color2, t) { | |
let color = {}; | |
color.r = color1.r + ((color2.r - color1.r) * t); | |
color.g = color1.g + ((color2.g - color1.g) * t); | |
color.b = color1.b + ((color2.b - color1.b) * t); | |
return color; | |
} |
Unit CountLoadedRefs; | |
Var | |
giTemporaryCount: Integer; | |
giPersistentCount: Integer; | |
giPluginTemporaryCount: Integer; | |
giPluginPersistentCount: Integer; | |
Const | |
gtPersistent = 8; |
import ch.bildspur.postfx.builder.PostFX; | |
import peasy.PeasyCam; | |
import processing.core.PApplet; | |
import processing.core.PShape; | |
import processing.core.PVector; | |
import processing.opengl.PShader; | |
import java.util.ArrayList; | |
public class MainApp extends PApplet { |
/* | |
Copyright (c) 2018 Pete Michaud, github.com/PeteMichaud | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
""" | |
This script is designed to export a mass amount of MagicaVoxel .vox files | |
to .obj. Unlike Magica's internal exporter, this exporter preserves the | |
voxel vertices for easy manipulating in a 3d modeling program like Blender. | |
Various meshing algorithms are included (or to be included). MagicaVoxel | |
uses monotone triangulation (I think). The algorithms that will (or do) | |
appear in this script will use methods to potentially reduce rendering | |
artifacts that could be introduced by triangulation of this nature. | |
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS | |
# Can retrieve cloudflare Domain id and list zone's, because, lazy | |
# Place at: | |
# /usr/local/bin/cf-ddns.sh |