Skip to content

Instantly share code, notes, and snippets.

View juanmirod's full-sized avatar

Juan Miguel Rodriguez Ceron juanmirod

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const scope = {};
function def(id, fn) {
scope[id] = fn;
}
function explode(id) {
return scope[id] ? [id] : id.split('\u200d');
}
function getFns(id) {
return explode(id).map(function(ii) {
if (!scope[ii])
@frankfaustino
frankfaustino / composing.software.md
Last active March 3, 2023 06:20
Eric Elliot: Composing Software Series

Eric Elliott: Composing Software

@sarfarazansari
sarfarazansari / nodejs_aws_s3_file_upload.js
Last active March 15, 2024 09:40
How to upload files to AWS S3 with NodeJS - AWS-SDK? With the help of this library you can upload any kind of file to s3. (NODEJS, AWS-SDK, S3)
/**
* we are going to upload file to s3 via node js by using
* aws-sdk - required
* busboy - required
* uuid - optional - for image renaming purpose
* with this library you can upload any kind of file to s3 via node js.
*/
const AWS = require('aws-sdk');
const UUID = require('uuid/v4');
@mhausenblas
mhausenblas / cli-fu.md
Created July 5, 2018 13:30
Michael's bash snippets
@tomerof
tomerof / vue3-pwa.md
Last active June 10, 2025 16:28
To turn a Vue 3 app into a PWA

To turn a Vue 3 app into a PWA, you can follow these steps:

  1. Create a manifest.json file in the public folder of your Vue 3 app. This file contains metadata about your PWA, such as the app name, icon, and theme color. Here's an example:
{
  "name": "My Vue 3 App",
  "short_name": "My App",
  "icons": [
    {
 "src": "img/icons/android-chrome-192x192.png",