Skip to content

Instantly share code, notes, and snippets.

View gotdibbs's full-sized avatar
:shipit:
doing things

William Dibbern gotdibbs

:shipit:
doing things
View GitHub Profile
@gotdibbs
gotdibbs / convert.ps1
Last active March 8, 2021 23:59
Convert mp4 to h.265
# 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) {
@BrandonLive
BrandonLive / BrandonJS-xhr
Last active January 4, 2016 15:39
BrandonJS.xhr - Provides a helper which mimicks the WinJS.xhr interface but uses WinRT's new HttpClient under the hood if available.
// 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.
@aaronksaunders
aaronksaunders / app_snippet.js
Last active July 11, 2020 14:07
One way to do bulk updates and deletes with Appcelerator Alloy Collections
// add all items to collection
Alloy.Collections.Fugitive.reset([{
"name" : "Jeff Haynie"
}, {
"name" : "Nolan Wright"
}, {
"name" : "Don Thorp"
}, {
"name" : "Marshall Culpepper"
}, {
@haschek
haschek / .jshintrc
Created May 4, 2012 16:08
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// 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
@defunkt
defunkt / clients.md
Created April 18, 2010 14:09
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support