Skip to content

Instantly share code, notes, and snippets.

View DigbijayNayak's full-sized avatar
๐Ÿ“–
Stay hungry, stay foolish.

Digbijay Nayak DigbijayNayak

๐Ÿ“–
Stay hungry, stay foolish.
View GitHub Profile
@gaearon
gaearon / Wordle.js
Created January 22, 2022 20:49
wordle v3 (tiny wordle clone i built during a stream) https://www.youtube.com/watch?v=Qxn4-bTOx0g
import { useState, useEffect, useRef, useMemo } from 'react'
export default function Wordle() {
let [currentAttempt, setCurrentAttempt] = useState('')
let [bestColors, setBestColors] = useState(() => new Map())
let [history, setHistory] = usePersistedHistory(h => {
waitForAnimation(h)
})
useEffect(() => {

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? โ˜†โ˜†

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

Windows Env variables

  1. ANDROID_SDK_ROOT - location of your android SDK folder
  2. ANDROID_HOME - location of your android SDK folder
  3. JAVA_HOME - Location of your JDK folder
  4. PATH - Locations where programs could be located

PATH Should Include

  • %ANDROID_SDK_ROOT%\emulator
  • %ANDROID_SDK_ROOT%\tools
  • %ANDROID_SDK_ROOT%\tools\bin
@btroncone
btroncone / rxjs_operators_by_example.md
Last active September 14, 2025 16:48
RxJS 5 Operators By Example
@sainture
sainture / DOM Manipulation JavaScript.js
Last active November 3, 2024 15:26
DOM Manipulation JavaScript methods and properties
/* Property: attributes
attributes property returns a collection of the specified node's attributes, as a NamedNodeMap object
It is a NamedNodeMap, not an Array, so it has no Array methods
To be more specific, attributes is a key/value pair of strings that represents any information regarding that attribute.
var attr = element.attributes;
*/
var paragraph = document.getElementById("paragraph");
// First, let's verify that the paragraph has some attributes
if (paragraph.hasAttributes()) {
@roachhd
roachhd / README.md
Last active November 8, 2025 17:17
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@davfre
davfre / git_cheat-sheet.md
Last active October 25, 2025 14:51
git commandline cheat-sheet