Skip to content

Instantly share code, notes, and snippets.

View Cleanse's full-sized avatar
🕊️
THINKING

Paul Lovato Cleanse

🕊️
THINKING
View GitHub Profile
@seraku24
seraku24 / 149909-playlist_youtube-vlc3patch.lua
Created May 16, 2018 09:56
VLC 3.x compatibility patch for 149909-playlist_youtube.lua
--[[
Youtube playlist importer for VLC media player 1.1 and 2.0
Copyright 2012 Guillaume Le Maout
Authors: Guillaume Le Maout
Contact: http://addons.videolan.org/messages/?action=newmessage&username=exebetche
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
@mcrumley
mcrumley / array_partition.php
Created April 10, 2014 15:56
Partition an array into approximately equal-sized chunks
<?php
/**
* Partition an array into N chunks
*
* @param array $a array to split
* @param int $np number of partitions
* @param bool $pad pad the result with empty arrays if necessary (default = true)
*
* @return array the original array split into $np chunks