Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Angel senechaux

🎯
Focusing
View GitHub Profile
@senechaux
senechaux / adivinar_palabras_wordle.js
Last active Jun 22, 2022
Script wordle para adivinar palabras
View adivinar_palabras_wordle.js
let numberOfWordsToGuess = 10;
let guessedWords = new Array();
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
const guessWords = async () => {
const intentos = [1, 2, 3, 4, 5, 6];
const word = 'reino';
@senechaux
senechaux / escribir_palabras_wordle.js
Last active Jun 27, 2022
Script wordle para escribir palabras
View escribir_palabras_wordle.js
const words=["pauta","enero","dudar","logro","sushi","pañal","caida","cargo","tenaz","firme","fresa","teñir"];
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
const writeWords = async (words) => {
let index = 0;
for (const word of words) {
console.log('write word '+(++index)+'/'+words.length+': '+word);
const letters = Array.from(word);
@senechaux
senechaux / git_pull_all.sh
Created Oct 3, 2018
Git pull all subdirectories in current directory
View git_pull_all.sh
#!/bin/bash
DIRS=`ls -d */`
for dir in ${DIRS[@]}; do
cd $dir
if [ -d .git ]; then
echo '=================='
echo '=================='
echo $dir