This file contains 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
isEven(N):- | |
0 is mod(N,2). | |
countEvenOdd([],[0,0]). | |
countEvenOdd([H|C],[Even,Odd]):- | |
countEvenOdd(C,[E,O]), | |
( isEven(H) -> | |
Even is E+1,Odd is O+0; | |
Even is E+0, Odd is O+1 |
This file contains 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
* | |
{ | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
.chart | |
{ | |
display: flex; |
This file contains 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
Endure you have the mongodb tools, else mongoimport will fail woefully | |
mongoimport --uri "[url to mongo db server - use the srv one]" --db [db name] --collection [collection name] --type json --file "[path to json file]" --jsonArray |