Skip to content

Instantly share code, notes, and snippets.

View estrada9166's full-sized avatar
🚀

Alejandro Estrada estrada9166

🚀
  • Medellin, Colombia
View GitHub Profile
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@eddywashere
eddywashere / README.md
Last active May 19, 2023 02:17
Load third party javascript asynchronously, initialize queue for method calls, replace queue function, profit?

live demo

Files:

  • index.html: example of queue (the part that is always shown)
  • third-party.js: example of third party javascript (the part no one ever talks about)

Inspiration:

  • google analytics
@sibelius
sibelius / safeNestedPath.ts
Created February 28, 2019 12:50
How to safe update nested fields on mongoose
import dot from 'dot-object';
export const safeNestedPath = (args: object) => {
return dot.dot(args);
};