Skip to content

Instantly share code, notes, and snippets.

View rowe-morehouse's full-sized avatar
👋
… hi!

Rowe Morehouse rowe-morehouse

👋
… hi!
View GitHub Profile
@rowe-morehouse
rowe-morehouse / infinite-zoom.css
Created October 15, 2020 02:34 — forked from jayllellis/infinite-zoom.css
Infinite slow zoom CSS animation
.infinite-zoom{
-webkit-animation: zoomSlow 60s infinite linear;
-moz-animation: zoomSlow 60s infinite linear;
animation: zoomSlow 60s infinite linear;
}
@-webkit-keyframes zoomSlow {
0% {
-moz-transform: scale(1);
-webkit-transform: scale(1);
@rowe-morehouse
rowe-morehouse / regex.md
Created October 15, 2020 00:32 — forked from magicznyleszek/regex.md
RegEx Cheatsheet
@rowe-morehouse
rowe-morehouse / multiply-blending-mode-to-png.md
Created October 15, 2020 00:28 — forked from mfd/multiply-blending-mode-to-png.md
Multiply blending mode to PNG in Photoshop
  1. copy your image (Ctrl+A and Ctrl+C)
  2. make a new document-sized pure-black layer behind it
  3. group the black layer and yor image together
  4. add mask to the group
  5. enter mask edit mode (alt+click on the mask icon/thumbnail)
  6. paste your image in the mask (b/w) and then invert it.
  7. save it as a 24-bit transparent PNG
for i in **/*.mp4; do
    d=$(dirname "$i");
    b=$(basename "$i" .mp4);
    mkdir -p "720/${d}"
    ffmpeg -i "$i" -c:v libx264 -s hd720 "720/${d}/${b}_720.mp4"
done
@rowe-morehouse
rowe-morehouse / complete-list-of-ffmpeg-flags+commands.txt
Last active October 6, 2020 07:36 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
Originall From: http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options | Posted 2015-05-29
ffmpeg full documentation: https://ffmpeg.org/ffmpeg.html
----------------------------------------
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
@rowe-morehouse
rowe-morehouse / sample-usability-test-script
Created October 1, 2020 03:12 — forked from gkogan/sample-usability-test-script
Sample Usability Testing Script for SaaS Startups
(Introduce yourself and thank the participant. Outline how the call will proceed. Emphasize that you want to hear their honest feedback, so they should think aloud and unfiltered as much as possible.)
PART 1: Desired Outcomes
Before we look at the site, I’d like to ask you just a few questions.
What’s your job title and what do you consider to be your most important responsibilities?
(Unpack their answer to understand the root of their responsibilities, their real "desired outcome"--that is, what they're trying to accomplish. For example, if they say "I'm responsible for maintaining data pipelines," dig deeper with questions like "Why is that important?" until you get at the heart of their responsibilities, like "My job is to ensure the integrity and auditability of the models that run our company." This might take a few follow-up questions to reach.)
@rowe-morehouse
rowe-morehouse / ffmpeg-commands.sh
Last active August 26, 2022 07:40
ffmpeg commands.
# To extract the sound from a video and save it as MP3:
ffmpeg -i <video.mp4> -vn <sound>.mp3
# To convert frames from a video or GIF into individual numbered images:
ffmpeg -i <video.mpg|video.gif> <frame_%d.png>
# To combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF:
ffmpeg -i <frame_%d.jpg> -f image2 <video.mpg|video.gif>
# To quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image:
@rowe-morehouse
rowe-morehouse / mov-to-gif.md
Last active October 4, 2020 17:39
Quicktime screen record .mov to animated .gof

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

  • Open "Quicktime Player",
  • Go to File -> New Screen Recording