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
| services: | |
| mariadb: | |
| image: 'bitnamilegacy/mariadb:latest' | |
| environment: | |
| - ALLOW_EMPTY_PASSWORD=yes | |
| - MARIADB_USER=bn_myapp | |
| - MARIADB_DATABASE=bitnami_myapp | |
| - MARIADB_PASSWORD=b1tnam1_my@pp | |
| volumes: | |
| - 'mariadb_data:/bitnami/mariadb' |
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://projecteuler.net/problem=2 | |
| let sumOfEvenFibo limit = | |
| (2, 0) | |
| |> Seq.unfold (fun (a, b) -> | |
| let nxt = a + 4 * b in Some(nxt, (b, nxt))) | |
| |> Seq.takeWhile (fun n -> n < limit) | |
| |> Seq.sum | |
| sumOfEvenFibo 4000000 |
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
| /* | |
| solution for | |
| https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/wherefore-art-thou | |
| */ | |
| function whatIsInAName(collection, source) { | |
| const arr = []; | |
| // Only change code below this line | |
| arr.push(...collection.filter(el => Object.keys(source).every(key => (key in el && el[key] === source[key])))) | |
| // Only change code above this line | |
| return arr; |
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
| /* | |
| solution for | |
| https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/pig-latin | |
| */ | |
| function translatePigLatin(str) { | |
| return /^[^aeiou]/.test(str) ? str.replace(/^([^aeiou]+)(?:(?<=$)|(\w+))/, "$2$1ay") : str.replace(/(\w+)/, "$1way") | |
| } | |
| translatePigLatin("consonant"); |
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
| // solution for | |
| // https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-odd-fibonacci-numbers | |
| const memo = {}; | |
| function fib(n) { | |
| if (n in memo) return memo[n]; | |
| if (n <= 2) return 1; | |
| memo[n] = fib(n - 1) + fib(n - 2); | |
| return memo[n]; |
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
| # -*- coding: utf-8 -*- | |
| #python 3.x | |
| import csv | |
| import sys | |
| #convert a "comma separated values" file to vcf contact cards | |
| #USAGE: | |
| #CSV_to_Vcards.py CSV_filename |
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
| ababa | |
| abacería | |
| abacial | |
| abada | |
| abadernar | |
| abadesa | |
| abadía | |
| abadiato | |
| abajadero | |
| abajamiento |