Skip to content

Instantly share code, notes, and snippets.

View juandl's full-sized avatar
🎯
Focusing

Juan David juandl

🎯
Focusing
View GitHub Profile
View base64toblob.js
'use strict';
const b64toBlob = (b64Data, contentType='', sliceSize=512) => {
const byteCharacters = atob(b64Data);
const byteArrays = [];
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
const slice = byteCharacters.slice(offset, offset + sliceSize);
const byteNumbers = new Array(slice.length);
@gokulkrishh
gokulkrishh / media-query.css
Last active February 21, 2024 01:46
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */