Skip to content

Instantly share code, notes, and snippets.

// transform cropper dataURI output to a Blob which Dropzone accepts
function dataURItoBlob(dataURI) {
var byteString = atob(dataURI.split(',')[1]);
var ab = new ArrayBuffer(byteString.length);
var ia = new Uint8Array(ab);
for (var i = 0; i < byteString.length; i++) {
ia[i] = byteString.charCodeAt(i);
}
return new Blob([ab], { type: 'image/jpeg' });
}
@thinhhung
thinhhung / encode.sh
Created February 6, 2019 14:29 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
#/bin/sh
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
#!/usr/bin/env bash
# http://prdl-download.adobe.com/Photoshop/66A1D1E00DE44601B041A631261EC584/1507851230691/AdobePhotoshop19-mul.dmg
# http://prdl-download.adobe.com/LightroomCC/B739B5BBE924450E85E3CCA3F4E58DF2/1507820815391/LRCC_1.0_osx10-64_Release_ESD.dmg
# http://prdl-download.adobe.com/Bridge/FA96960347614BFC971E28B536D3387F/1507867282191/Bridge.8.0.HDInstaller.dmg
# http://prdl-download.adobe.com/Lightroom/C92BB55D87554077A61FB4B39229DF85/1509475151710/LR_7.0.1_1142117_osx10-64_Release_ESD.dmg
# http://prdl-download.adobe.com/Illustrator/C1208DBFE1D04A81A21C62CDF6A96AC6/1509969961594/AdobeIllustrator22_HD.dmg
# http://prdl-download.adobe.com/Dreamweaver/0D145873957D4FEF849999B43723DA1E/1509110688886/Dreamweaver%20CC%202018%20Set-up.dmg
# http://prdl-download.adobe.com/InDesign/0AE9CC3E24054F7CAAEF89371F6B8E8E/1507853111317/InDesign_13_LS20.dmg
# http://prdl-download.adobe.com/Acrobat%20Professional/7D1CAD83986848F092F39734E60DCFEA/1508139532629/Acrobat_DC_Web_WWMUI.dmg&#8221;&gt;Mac OS (64 bit)
@thinhhung
thinhhung / getAdobeCC2018.sh
Created March 23, 2019 14:15 — forked from fuyuanli/getAdobeCC2018.sh
透過 Aria2 下載 Adobe CC 2018 試用板
aria2c -x16 http://prdl-download.adobe.com/Photoshop/66A1D1E00DE44601B041A631261EC584/1507846032938/AdobePhotoshop19-mul_x64.zip
aria2c -x16 http://prdl-download.adobe.com/LightroomCC/B739B5BBE924450E85E3CCA3F4E58DF2/1507817913973/LRCC_1.0_20170919-1412-ccb76bd_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Lightroom/C92BB55D87554077A61FB4B39229DF85/1509474343363/LR_7.0.1_1142117_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Illustrator/C1208DBFE1D04A81A21C62CDF6A96AC6/1509968804429/AdobeIllustrator22_HD_win64.zip
aria2c -x16 http://prdl-download.adobe.com/InDesign/0AE9CC3E24054F7CAAEF89371F6B8E8E/1507852089154/InDesign_13_LS20_Win64.zip
aria2c -x16 http://prdl-download.adobe.com/Acrobat%20Professional/7D1CAD83986848F092F39734E60DCFEA/1508138997522/Acrobat_DC_Web_WWMUI.exe
aria2c -x16 http://prdl-download.adobe.com/Dimension/BA884A82C5AB47569685C2BD7D1289AD/1508226581127/Dimension_1.0-20170927.r.672-f179c9c-ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Bridge/FA969603