Skip to content

Instantly share code, notes, and snippets.

View SalathielGenese's full-sized avatar
🇫🇷
WIP https://github.com/SalathielGenese/resp

Salathiel Genese SalathielGenese

🇫🇷
WIP https://github.com/SalathielGenese/resp
View GitHub Profile
# Write a function findWord that takes a list of letter combinaisons in input, and returns the
# word issued from the combinaisons. There is always a unique solution.
# assert findWord(["P>E", "E>R", "R>U"]) == "PERU"
# assert findWord(["I>N", "A>I", "P>A", "S>P"]) == "SPAIN"
# assert findWord(["U>N", "G>A", "R>Y", "H>U", "N>G", "A>R"]) == "HUNGARY"
# assert findWord(["I>F", "W>I", "S>W", "F>T"]) == "SWIFT"
# assert findWord(["R>T", "A>L", "P>O", "O>R", "G>A", "T>U", "U>G"]) == "PORTUGAL"
# assert findWord(["W>I", "R>L", "T>Z", "Z>E", "S>W", "E>R", "L>A", "A>N", "N>D", "I>T"]) == "SWITZERLAND"
# assert findWord(["O>K"]) == "OK"
@rodneyrehm
rodneyrehm / gist:40e7946c0cff68a31cea
Last active March 12, 2025 19:23
Diagrams for Documentation

some tools for diagrams in software documentation

Diagrams For Documentation

Obvious Choices

ASCII

@evanscottgray
evanscottgray / docker_kill.sh
Last active November 7, 2023 03:40
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@timhudson
timhudson / app-code.js
Last active October 30, 2020 12:28
Scroll start/stop events using jQuery
$(function() {
$(document).on('scrollstart', function() {
console.log('scroll started')
})
$(document).on('scrollend', function() {
console.log('scroll ended')
})