Skip to content

Instantly share code, notes, and snippets.

View eduardinni's full-sized avatar
🚲

Eduardo Lomelí eduardinni

🚲
View GitHub Profile
@eduardinni
eduardinni / GIF-Screencast-OSX.md
Created December 22, 2016 04:52 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

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

Instructions

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

@eduardinni
eduardinni / youtubeID.rb
Last active July 31, 2022 12:39 — forked from takien/youtubeID.js
Get YouTube ID from various YouTube URL using Ruby
# Get YouTube ID from various YouTube URL
# Ruby port from JavaScript version: https://gist.github.com/takien/4077195/
def get_youtube_id(url)
id = ''
url = url.gsub(/(>|<)/i,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/)
if url[2] != nil
id = url[2].split(/[^0-9a-z_\-]/i)
id = id[0];
else