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
| CREATE USER 'username'@'localhost' IDENTIFIED BY '...'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost'; | |
| GRANT SELECT, LOCK TABLES on Project_app_production.* to 'user'@'localhost'; | |
| SHOW GRANTS FOR 'root'@'localhost'; | |
| select * from mysql.user; | |
| --- |
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
| // prime number generator | |
| for (i <- 2 to 1000) | |
| if((2 to i).find( j=> (i % j == 0 && i != j) ) == None) | |
| println(i) | |
| // function currying example | |
| def matcher(haystack: List[Char])(needle: String) = { | |
| haystack contains needle.charAt(0) | |
| } |
NewerOlder