Skip to content

Instantly share code, notes, and snippets.

@msteen
msteen / print-lezer-tree.ts
Last active May 1, 2024 20:58
Print Lezer Trees
// MIT License
//
// Copyright (c) 2021 Matthijs Steen
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@tpope
tpope / 20-chrome-suxxx.conf
Created October 19, 2019 22:41
Fix Chrome's chrome using mono-chrome emoji
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>Symbola</string>
</test>
<test qual="any" name="prgname" compare="contains">
<string>chrom</string>
</test>
@gdsoft
gdsoft / chrome
Last active May 1, 2024 20:57
chrome
https://chrome-extension-downloader.com/
@molavec
molavec / phone_fix.js
Last active May 1, 2024 20:57
[Corrector de teléfonos] Corrector de teléfonos para zapier.
/**
* Corrector de teléfonos
*
* Nota: Este código está pensado para ser utilizado en Zapier
**/
//Tarea: Ajusta el número de teléfono
// objeto para almacenar variantes del telefono completo.
var phone = {
@molavec
molavec / zapier_ajuste_whatsapp.js
Last active May 1, 2024 20:57
[zapier - Prepare data] Script para ajustar datos de leads en zapier
//Tarea: Ajusta el número de teléfono
let phone = {
"complete": null,
"no_plus": null
}
if(inputData.phone != null) {
var phoneString = inputData.phone.replace(/ /g,'');
if(phoneString.charAt(0) === '+') {
phone = {
"complete": phoneString,
@molavec
molavec / zapier_email.html
Last active May 1, 2024 20:56
[zapier - Email alerta] Contenido email alerta nuevo contacto.
<p>Hola :</p>
<p><b>{{000000__firstname}} {{000000__lastname}}</b> ha solicitado ser atendido! 😃🎊</p>
<p>No pierdas su atención y contáctalo a la brevedad.</p>
<p>Sus datos son:</p>
<ul>
<li>Nombre: {{000000__firstname}} {{000000__lastname}}</li>
<li>Teléfono: <a href="tel:{{000000__phone}}">{{000000__phone}}</a></li>
<li>Email: <a href="mailto:{{000000__email}}">{{000000__email}}</a></li>
<li>Whatsapp: <a href="{{000000__whatsapp}}">hablar por whatsapp con el prospecto</a></li>
</ul>
@molavec
molavec / dgec-parse-link.js
Last active May 1, 2024 20:56
dgec-parse-link.js
¡Hola Anto!
----
Después de revisar tu cuenta, he encontrado varios puntos que podemos mejorar para generar más clics y conversiones.
-----
Efectivamente no se está midiendo ninguna acción debido a que los *eventos de conversión* no están configurados en tu página (y tampoco se han seleccionado apropiadamente para tu campaña).
@molavec
molavec / salfa_piloto.js
Created February 19, 2018 21:31
[snippets chrome] Snippet para chrome #chrome #devtools #script
//window.location.href = 'http://campanas.salfa.cl/chevrolet/new-onix/';
//window.location.href = 'http://campanas.salfa.cl/chevrolet/camaro/';
$(function() {
var name = 'Miguel Olave';
var rut= '14535990-2';
var email= 'miguel@turbomarket.cl';
var cod_area = '09';
var phone = '93443055';
var region = '13';
// Obsidian Plugin Sorter by Downloads:
// This script will sort the plugins by downloads amount and print them in the console.
// The script should be able to run in the browser console.
// The Obsidian Plugin List Sorter by Downloads Amount script will sort the plugins by downloads amount in your browser html view and print them in the console.
// The obsidian Plugins URL: https://obsidian.md/plugins
// Solution:
// 1. Get all the plugins divs