Skip to content

Instantly share code, notes, and snippets.

View travm's full-sized avatar
😱

Travis Maynard travm

😱
View GitHub Profile
@travm
travm / timelapse.md
Created August 16, 2018 14:21 — forked from alexellis/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality

@travm
travm / EN_iOS_Godot_no_paid_account.md
Created March 3, 2020 03:22
Build and Run Godot Games on iOS without a Paid Apple Dev Account

Godot Games on iOS without an Apple Paid Developer Account

Prerequist

  • A Mac and some iDevice (ios 8 +) if you want to try it physically
  • Xcode and the common tools (run it once)
  • Godot Engine 3.1.1 (+?) (Will probably work on other version but it's the version I tried that)

Steps

  1. Create a Personal Team with your Standard Apple account and Generate a Certificate for your Computer. (Google it)
@travm
travm / catmull-rom.gd
Created August 20, 2024 02:45 — forked from JoelBesada/catmull-rom.gd
Catmull-Rom Spline in GDScript
func catmull_rom_spline(
_points: Array, resolution: int = 10, extrapolate_end_points = true
) -> PackedVector2Array:
var points = _points.duplicate()
if extrapolate_end_points:
points.insert(0, points[0] - (points[1] - points[0]))
points.append(points[-1] + (points[-1] - points[-2]))
var smooth_points := PackedVector2Array()
if points.size() < 4:
@travm
travm / cleanEdge-shadertoy.glsl
Created February 13, 2025 16:41 — forked from torcado194/cleanEdge-shadertoy.glsl
cleanEdge, a pixel art upscaling algorithm for clean rotations
/*** MIT LICENSE
Copyright (c) 2022 torcado
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