Product walks in with ✨vibes✨ and not a plan, give them this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| fetch("data.json") | |
| .then(response => response.json()) | |
| .then(json => { | |
| // Filter only "Electronic Technology" stocks | |
| const data = json.data | |
| .filter(d => d.d[21] === "Electronic Technology") | |
| .map(d => ({ | |
| symbol: d.s, | |
| company: d.d[27], |
This all looks like rookie stuff. Solve it how an enterprise solution saas company for code diffs would have done or something better than that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://leetcode.com/problems/longest-substring-without-repeating-characters/description/ | |
| // "abcabcbb" ==> 3 | |
| // "bbbbb" ==> 1 | |
| // "pwwkew" ==> 3 | |
| function LongestNonRepeatedSubstringLength(str) { | |
| let h = new Map(); | |
| let left = 0; | |
| let maxLength = 0; | |
| for (let right = 0; right < str.length; right++) { |
A long, comprehensive JSON example of frequently used VS Code settings that developers often configure in their settings.json.
I’ve included a wide range of categories:
- editor behavior,
- formatting,
- UI customization,
- For funky vscode themes, refer https://gist.github.com/tangoabcdelta/235764d1c234020c26644387b77f6629
- This gist contains changes to be done in
settings.jsonfor editor UI customization
- language-specific settings,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "default": true, | |
| "extends": null, | |
| "MD001": true, | |
| "MD003": { | |
| "style": "consistent" | |
| }, | |
| "MD004": { | |
| "style": "consistent" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Set permission for this file: chmod +x file-name.sh | |
| # Function to perform the required actions in each directory | |
| function process_directory() { | |
| local target_dir="$1" | |
| if [[ ! -d "$target_dir" ]]; then | |
| echo "Error: Directory $target_dir does not exist." |
curl 'https://waa-pa.xx.google.com/$rpc/xx.xx.v1.Waa/Create' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB-oxendict,en-US;q=0.9,en;q=0.8' \
-H 'Authorization: SAPISIDHASH 1750645628_xx SAPISID1PHASH 1750645628_xxx SAPISID3PHASH 1750645628_xxx' \
--data-raw '["/<app-name-hased>"]'In the request payload, we would want to send a list of feature flags
These faeature flags are abbreviated to minimize payload size and tampering.
We determine the supported functionalities in the client - The client could be a Mobile App, A web view, or web app running inside a browser.
We send these to the backend API - Each type code represents a specific capability that the client can handle or is requesting to use.
"capabilities": [{
"type": "EC"NewerOlder