Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains hidden or 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
# Assumes all videos are in a folder called "video" sitting alongside ffmpeg | |
# Note conversion is likely lossy, but not noticeable in my experience and the >50% space savings were worth it to me personally | |
# See more detailed notes below for tuning and options | |
$videosToConvert = Get-ChildItem -Filter '*.mp4' | |
foreach ($video in $videosToConvert) { | |
$destination = Join-Path 'output' $video.Name | |
If ((Test-Path -Path $destination -PathType Leaf) -ne $true) { |
This file contains hidden or 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
[CmdletBinding()] | |
param( | |
[ValidateNotNullOrEmpty()] | |
[string]$repo, | |
[ValidateNotNullOrEmpty()] | |
[string]$token, | |
[ValidateNotNullOrEmpty()] | |
[int]$PRfrom, | |
[ValidateNotNullOrEmpty()] | |
[int]$PRto |
This file contains hidden or 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
// This file is part of the Brandon Library for JavaScript (BrandonJS) | |
// Original author: Brandon Paddock, www.brandonlive.com | |
// Published under Creative Commons Attribution 4.0 International Public License | |
// http://creativecommons.org/licenses/by/4.0/legalcode | |
// BrandonJS.xhr | |
// Provides a helper which mimicks WinJS.xhr but using WinRT's new HttpClient if available. | |
// If WinRT is not available, it falls back to WinJS.xhr. | |
// This mimicks enough for common usage scenarios, but you may need to extend it for some cases. |
This file contains hidden or 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
// add all items to collection | |
Alloy.Collections.Fugitive.reset([{ | |
"name" : "Jeff Haynie" | |
}, { | |
"name" : "Nolan Wright" | |
}, { | |
"name" : "Don Thorp" | |
}, { | |
"name" : "Marshall Culpepper" | |
}, { |
This file contains hidden or 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
Show hidden characters
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// | |
// This is a options template for [JSHint][1], using [JSHint example][2] | |
// and [Ory Band's example][3] as basis and setting config values to | |
// be most strict: | |
// | |
// * set all enforcing options to true |