Skip to content

Instantly share code, notes, and snippets.

View ahmed1hsn's full-sized avatar
🎯
Focusing

Ahmed Hassan ahmed1hsn

🎯
Focusing
View GitHub Profile
const fruits = ["Apple", "Mango", "Orange", "Banana", "Kiwi"]
const characters = [ "b", "c"]
// Problem: find Longest fruit name which doens't contain any of thse characters.
// Fruit Element Length
// Character inclusion in Fruit Element.
let fruitWithHighestLength = "";
for (const fruitElement of fruits) {
@ahmed1hsn
ahmed1hsn / .dir-locals.el
Last active June 2, 2025 20:41
.dir-locals.el file for quickly starting emacs inf-clojure babashka socket repl => (C-c C-z or M-x inf-clojure)
((nil .
((inf-clojure-custom-startup . "bb socket-repl 1666")
(inf-clojure-custom-repl-type . babashka))))