Skip to content

Instantly share code, notes, and snippets.

View felipe-negri's full-sized avatar
🐲

Felipe Negri felipe-negri

🐲
View GitHub Profile
/**
* Returns an array with arrays of the given size.
*
* @param myArray {Array} Array to split
* @param chunkSize {Integer} Size of every group
*/
function chunkArray(myArray, chunk_size){
var results = [];
while (myArray.length) {
@felipe-negri
felipe-negri / deviant.groovy
Created September 27, 2018 17:15 — forked from crazy4groovy/deviant.groovy
Get photos from deviantart gallery(s), download to local folder or export url list to local file
/*
* author: crazy4groovy
* description: given a list of 1+ deviant art gallery URLs (semicolon separated),
* will parse out a list of all full size images found.
* license: MIT, no warranties or guarantees!
*/
import static groovyx.gpars.GParsPool.withPool as parallel
/////////////////////////////////