This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Use this script to quickly clean up duplicate iPhone images, which are named | |
# like this: "IMG_1234 1.JPG" where this is a copy of "IMG_1234.JPG", though | |
# it can take any pattern that will work with the `-name` argument of `find`. | |
# | |
# These files are sometimes the by-product of importing iPhone pictures via the | |
# Image Capture application. | |
# | |
# This script MUST be in the same directory as your photos! I did not add the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global window */ | |
(function(player, vjs){ | |
var is5 = vjs.VERSION.charAt(0) === '5'; | |
var players = is5 ? vjs.getPlayers() : vjs.players; | |
// Nah. | |
if (is5 ? vjs.browser.IS_IE8 : vjs.IS_IE8) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Plugin = videojs.getPlugin('plugin'); | |
class Advanced extends Plugin { | |
constructor(player, options) { | |
super(player, options); | |
// Whenever the player emits a playing or paused event, we update the | |
// state if necessary. | |
this.on(player, ['playing', 'paused'], this.updateState); |