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
// Developer: Hugh Caluscusin | |
// Git: @MelodicCrypter | |
// Mutable states | |
let colsData = [1,2,3,4]; // example -> A,B,C,D | |
let colResult = 5; // example -> E | |
const ERR_BG_COLOR="#EEB8AE",SEMI_CORRECT_BG_COLOR="#CFE2F3",CORRECT_BG_COLOR="#86FFBA";function onOpen(e){SpreadsheetApp.getUi().createAddonMenu().addItem("Run","runAddressLookup").addSeparator().addItem("Revert","revertResultsColumn").addToUi()}function onInstall(e){onOpen(e)}function setting(e,t){e&&(colsData=e),t&&(colResult=t)}function runAddressLookup(){Logger.log("\uD83D\uDD25 Script is running.");let e=SpreadsheetApp.getActiveSheet(),t=e.getDataRange().getValues(),o=Maps.newGeocoder();o.setLanguage("it");let n=colResult,a=colsData.map(e=>Number(e)-1);if(0===t.length)throw Error("The file is empty!");if(t.length>0&&t.length<2)throw Error("Row 1 is expected for Headers only! Put real data starting on row 2.");t&&t.forEach((t,o)=>{if(0===o||(console.log("address",""===t[a[0]]),console.log("city",""===t[a[1]]),console.log("postal",""===t[a[2]]),consol |
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
# dependencies | |
/node_modules | |
# testing | |
/coverage | |
# production | |
build/* | |
build |
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
// CLI: Deleting all dot files inside a directory | |
rm -rf ..?* .[!.]* * | |
// Updated 2022, this worked for me | |
rm -rf .* |
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
// Code: edf | |
// Desc: For export components using index | |
export { default } from '.$END$'; |
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
from: https://httpstatuses.com/ | |
1×× Informational | |
100 Continue | |
101 Switching Protocols | |
102 Processing | |
2×× Success | |
200 OK | |
201 Created |
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
#theElement { | |
background-image: | |
linear-gradient(to bottom, rgba(245, 246, 252, 0.52), rgba(117, 19, 93, 0.73)), | |
url('images/background.jpg'); | |
width: 80%; | |
height: 400px; | |
background-size: cover; | |
color: white; | |
padding: 20px; | |
} |
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
node_modules | |
.next |
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
# dependencies | |
/node_modules | |
# testing | |
/coverage | |
# production | |
/build | |
# misc |
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
Show hidden characters
{ | |
"presets": [ | |
"@babel/preset-env" | |
] | |
} |
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
git remote add origin remote repository URL | |
git remote -v | |
git push -u origin master |
NewerOlder