Skip to content

Instantly share code, notes, and snippets.

View manuelvegadev's full-sized avatar
🏠
Working from home

Manuel Vega manuelvegadev

🏠
Working from home
View GitHub Profile
@manuelvegadev
manuelvegadev / datatables-traducciones-espanol.json
Created October 5, 2022 05:53
Traducciones de DataTables al español. (Security copy of https://datatables.net/plug-ins/i18n/Spanish.html)
{
"processing": "Procesando...",
"lengthMenu": "Mostrar _MENU_ registros",
"zeroRecords": "No se encontraron resultados",
"emptyTable": "Ningún dato disponible en esta tabla",
"infoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros",
"infoFiltered": "(filtrado de un total de _MAX_ registros)",
"search": "Buscar:",
"infoThousands": ",",
"loadingRecords": "Cargando...",
@manuelvegadev
manuelvegadev / copyToClipboard.js
Last active March 8, 2021 16:33
Copy to clipboard with pure JavaScript
async function copyToClipboard({text, message='Copied to clipboard', mdIcon = 'check'}) {
let tempInput = document.createElement('input')
tempInput.value = text
document.body.appendChild(tempInput)
tempInput.select();
document.execCommand('copy')
document.body.removeChild(tempInput)
await createSnackbar({
message: message,
mdIcon: mdIcon