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 | |
| if [ "$#" -lt 1 ]; then | |
| echo "Illegal number of parameters" | |
| echo "Usage: $0 directory [border-size]" | |
| exit | |
| fi | |
| if [ ! -z $2 ]; then | |
| border=$2 | |
| else | |
| border=65 |
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 | |
| # Array with expressions | |
| expressions=("guuuuuuuuuurrrrrrrrrrrr" "cluck cluck cluck" "click" "tick tock") | |
| voices=("Karen" "Diego" "Sara" "Thomas" "Victoria") | |
| # Seed random generator | |
| RANDOM=$$$(date +%s) | |
| # Get random expression... |
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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| "os/exec" | |
| "path/filepath" | |
| "strconv" | |
| "strings" |
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
| function getRandomInt(max) { | |
| return Math.floor(Math.random() * Math.floor(max)); | |
| } | |
| function makePuzzle(rows = 5, columns = 5, max = 20) { | |
| const find = getRandomInt(max); | |
| console.log(`Find the number ${find}`); | |
| const puzzle = []; | |
| for (let i = 0; i < rows; i++) { | |
| puzzle[i] = []; |
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 | |
| function usage { | |
| cat << EOM | |
| Usage: $0 filename size [quality, default: 75] [count, default: 3] | |
| For example: | |
| $0 rad.jpg 1024 75 3 |
OlderNewer