Skip to content

Instantly share code, notes, and snippets.

View pfrlv's full-sized avatar

Pasha Frolov pfrlv

View GitHub Profile
@pfrlv
pfrlv / youtube-video-thumbnails-sizes-and-formats.md
Created March 24, 2020 06:56
YouTube video thumbnails sizes and formats

Note: YouTube is serving thumbnails from 2 servers:

  • //img.youtube.com
  • //i.ytimg.com

Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.

  • Player Background Thumbnail (480x360):

@pfrlv
pfrlv / README.md
Created January 23, 2018 13:55 — forked from joyrexus/README.md
RAF replacements for setTimeout and setInterval

Drop in replace functions for setTimeout and setInterval that make use of requestAnimationFrame.

See overview article and Paul Irish's earlier post.

Courtesty of Joe Lambert

Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
@pfrlv
pfrlv / cursor.css
Created May 17, 2017 06:54 — forked from dsdsdsdsdsds/cursor.css
CSS: Cross Browser hires/retina cursor image
.cursor {
cursor: url("cursor.png") 0 0, pointer; /* Legacy */
cursor: url("cursor.svg") 0 0, pointer; /* FF */
cursor: -webkit-image-set(url("cursor.png") 1x, url("cursor@2x.png") 2x) 0 0, pointer; /* Webkit */
}