Skip to content

Instantly share code, notes, and snippets.

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

Manav Misra manavm1990

🏠
Working from home
View GitHub Profile
@DavidWells
DavidWells / github-proxy-client.js
Last active June 27, 2024 14:52
Full Github REST api in 34 lines of code
/* Ultra lightweight Github REST Client */
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb
const token = 'github-token-here'
const githubClient = generateAPI('https://api.github.com', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`
}
})
@manavm1990
manavm1990 / exponential.ts
Last active December 23, 2020 14:25
Eloquent Functions
const exponential = (base: number, exponent: number): number =>
exponent === 0 ? 1 : base * exponential(base, exponent - 1);
@ricealexander
ricealexander / array-quiz.md
Last active November 29, 2019 18:20
Arrays Quiz

(1.) Which of the following are valid arrays (Answer all that apply)

const A = ["Harder", "Better", "Faster", "Stronger"];
const B = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89];
const C = [
  "Urban Chestnut",
  2009,
  "4Hands",
 2011,
@staltz
staltz / introrx.md
Last active December 3, 2024 18:27
The introduction to Reactive Programming you've been missing
@trystant
trystant / gist:5530437
Last active June 12, 2021 02:23
Saw this in my spam folder. People fall for this?
BABE... i guess your not getting any of my email huh? ive been
tryign to email u so many times but this dam laptop is such a piece of
garbage and keeps freezing.. anyways how u been?
In case u dont know who this is its ME Adriana.. we used to chat a bit on facebook and then
I think u deleted me :( haha.. anyways guess what... I got 2 things to
tell u.. both good news.. 1) im single now.. yup me and my bf broke up
about 3 months ago... and 2) guess where im moving? RIGHT EFFING NEAR
U.. lol... ur actually the only person im gonna know there.. well 3
cousins too but i cant chill with them lol..