This file contains 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
@echo off | |
:: change the path below to match your installed version | |
SET IDEApath=C:\Users\User\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\193.6015.39\bin\idea64.exe | |
echo Adding file entries | |
@reg add "HKEY_CLASSES_ROOT\*\shell\IDEA" /t REG_SZ /v "" /d "Open with IDEA" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\IDEA" /t REG_EXPAND_SZ /v "Icon" /d "%IDEApath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\IDEA\command" /t REG_SZ /v "" /d "%IDEApath% \"%%1\"" /f | |
This file contains 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
/** | |
* chunkArrayByElement - Chunk array by element or split array like a string | |
* | |
* @param {Array} arr array to chunk | |
* @param {Any} c element to chunk by | |
* @return {Array} array containing chunk arrays | |
*/ | |
// https://stackoverflow.com/questions/46468754/chunk-array-by-element | |
function chunk(arr, el) { | |
if (arr.length === 0) { |
This file contains 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
function countElemInArray (array, elemToCount) { | |
return array.filter(elem => elem === elemToCount).length | |
} |
This file contains 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
AtomSync |
This file contains 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
// Will make this file simpler in the future, however for now... | |
// Get the file with HTML 5 or React Dropzone | |
uploadCallback (file) { | |
console.log('file', file) | |
this.getBase64(file, this) | |
} | |
getBase64 (file, self) { | |
const reader = new FileReader() |