Skip to content

Instantly share code, notes, and snippets.

View Debdut's full-sized avatar
💭
Chill

Debdut Karmakar Debdut

💭
Chill
View GitHub Profile
function curry (f) {
return function next (a) {
return function (b) {
if (b) {
return next(f(a, b))
}
return a
}
}
}

The Biggest Force in Women Empowerment : Technology

Angelo Blacksmith

[
{
"id": 1,
"name": "Everlog Journal",
"short": "A Modern Journal",
"description": "A modern journal app with a focus on simplicity.",
"logo": "https://i.ibb.co/6XV3bP8/logo.png",
"screenshots": [
"https://i.ibb.co/JRNqskX/3.png",
"https://i.ibb.co/PMy5sLD/1.png",
@Debdut
Debdut / promise2.js
Created September 20, 2020 17:16 — forked from vkarpov15/promise2.js
Write Your Own Node.js Promise Library from Scratch, Part 2
class MyPromise {
constructor(executor) {
if (typeof executor !== 'function') {
throw new Error('Executor must be a function');
}
// Internal state. `$state` is the state of the promise, and `$chained` is
// an array of the functions we need to call once this promise is settled.
this.$state = 'PENDING';
this.$chained = [];
@Debdut
Debdut / promise.js
Created September 20, 2020 17:17 — forked from vkarpov15/promise.js
Simple Promises/A+ Compliant Promise
const assert = (v, err) => {
if (!v) {
throw err;
}
};
let counter = 0;
class Promise {
constructor(executor) {
@Debdut
Debdut / README.md
Last active September 24, 2020 18:42
  • Save the index.html file
  • Use live-server to open it (http protocol)
  • Open file manager and open the file with Chrome or any browser (file protocol)

Why the two renderings http and file are so different?

@Debdut
Debdut / bill.svg
Last active September 26, 2020 20:57
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function makeChange(x, coinSet) {
const mem = []
const getChangeCoins = (value) => {
if (!value) {
return []
}
if (mem[value]) {
return mem[value]
{
"data": [
{
"id": "1120951317",
"title": "Aahista Aahista",
"artist": "Udit Narayan & Sadhana Sargam",
"album": "Swades (Original Motion Picture Soundtrack)",
"albumLink": "https://geo.music.apple.com/in/album/aahista-aahista/1120951279?app=music&at=11lt62&ct=tracklink",
"isrc": "INS180461167",
"duration": "408",
@Debdut
Debdut / css-properties.css
Created March 19, 2021 06:42 — forked from simurai/css-properties.css
All CSS properties
/*
* CSS Properties
* http://ref.openweb.io/CSS/
**/
.properties {
align-content: value;
align-items: value;
align-self: value;