Skip to content

Instantly share code, notes, and snippets.

View amyinorbit's full-sized avatar

Amy Parent amyinorbit

View GitHub Profile
ffmpeg -i "$1" -r 14 -an -vf scale=1080:1920 -filter:v "setpts=0.5*PTS" "$1.fr.mp4"
#exit;
ffmpeg -i "$1.fr.mp4" -r 30 -filter:v "setpts=0.5*PTS" "$1.rs.mp4"
ffmpeg -i "$1.rs.mp4" -filter_complex "[0:v]reverse,fifo[r];[0:v][r] concat=n=2:v=1 [v] " -map "[v]" "$1.b.mp4"
for i in {1..4}; do printf "file '%s'\n" $1.b.mp4 >> list.$1.txt; done
ffmpeg -f concat -i list.$1.txt -c copy $1.boomerang.mp4
rm "$1.fr.mp4"
@jamesarosen
jamesarosen / open-astronaut-training.md
Last active February 11, 2016 17:43
A collection of resources that I'm using to help me on my quest to become an astronaut

Purpose

This living document is a list of all of the resources I have found that I think will help me become an astronaut. I hope they help you do the same.

I'm looking for more, especially on chemical engineering, fluid dynamics, and engine design. If you have recommendations, please comment below or Tweet me at @jamesarosen.

✓ indicates I have finished at least one run through (for courses, books, videos) or have spent enough time with it to feel confident (for open-ended things like software)

@jlisee
jlisee / embed_file.py
Last active February 27, 2020 09:21
Convert a file to a C file to embedding in a C/C++ program
#! /usr/bin/env python
# Copyright (c) 2014, Joseph Lisee
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
; ___ _ __ ___ __ ___
; / __|_ _ __ _| |_____ / /| __|/ \_ )
; \__ \ ' \/ _` | / / -_) _ \__ \ () / /
; |___/_||_\__,_|_\_\___\___/___/\__/___|
; An annotated version of the snake example from Nick Morgan's 6502 assembly tutorial
; on http://skilldrick.github.io/easy6502/ that I created as an exercise for myself
; to learn a little bit about assembly. I **think** I understood everything, but I may
; also be completely wrong :-)
@gyng
gyng / inverseProjection.cpp
Last active April 13, 2020 09:21
OpenGL inverse projection matrix
/*
Based off http://bookofhook.com/mousepick.pdf
OpenGL matrix order
m0 m4 m8 m12
m1 m5 m9 m13
m2 m6 m10 m14
m3 m7 m11 m15
Projection matrix
@prime31
prime31 / gist:5675017
Last active April 2, 2024 03:55
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@shazron
shazron / gist:943736
Created April 27, 2011 04:55
About XCode 4 Project Template (How To Create Custom Project Template)
From: http://snipt.net/yonishin/about-xcode-4-project-template
XCode 4 Projects and Files Template Folder: /Developer/Library/Xcode/Templates
Examples:
/Developer/Library/Xcode/Templates/Project Templates/Base/Other/Empty.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Base/Base.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Mac Base.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Cocoa Application.xctemplate