Skip to content

Instantly share code, notes, and snippets.

View lwwcas's full-sized avatar

Lucas Duarte lwwcas

  • Grupo Impresa - SIC
  • Porto - Portugal
View GitHub Profile
@lwwcas
lwwcas / continenteonline.js
Last active June 15, 2022 10:17
Script para exportar todos os itens do carrinho do Continente Online para CSV via Terminal
run();
function run(){
let rawList = getRawProducts();
let processedList = [];
let self = this;
rawList.forEach((item) => {
let categoryObj = {
@lwwcas
lwwcas / .json
Created March 30, 2022 14:25
Vs Code config
{
// Style
// Dracula Theme link
// https://draculatheme.com/visual-studio-code/
"workbench.colorTheme": "Dracula",
// Material Icon Theme link
// https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme
"workbench.iconTheme": "material-icon-theme",
@lwwcas
lwwcas / .js
Created March 25, 2022 12:28
amp-ad-network-smartadserver-impl-01.js
;
(self.AMP = self.AMP || []).push({
m: 0,
v: "2203101844000",
n: "amp-ad",
ev: "0.1",
l: !0,
f: function(t, e) {
! function() {
function e(t, e) {
@lwwcas
lwwcas / executeFunctionByName.js
Created March 29, 2019 15:08
Execute functions by name
function executeFunction(name, arg = ''){
let base = 'clear';
if (typeof window[base + name] === 'function') {
if (arg == '') {
return window[base + name](arg);
}
return window[base + name];
}
return false;
}