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
| # our position mapper | |
| posMap = { | |
| 1: 4, | |
| 2: 2, | |
| 3: 3, | |
| 4: 1 | |
| } |
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
| auth: { | |
| redirect: { | |
| login: '/login', | |
| logout: '/', | |
| callback: '/login', | |
| home: false | |
| }, |
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
| auth: { | |
| redirect: { | |
| login: '/login', | |
| logout: '/', | |
| callback: '/login', | |
| home: | |
| }, |
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
| try { | |
| await this.$auth.loginWith('local', { data: this.user }) | |
| // some other line of code that shows loading msgs | |
| // ... | |
| this.$router.push(this.localePath({ path: 'dashboard' })) | |
| } catch (e) { | |
| // handling error | |
| } |
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
| mysql: | |
| ports: '33060:3306' | |
| appid: | |
| ports: '8001:80' | |
| redis: | |
| ports: '6378: 6379' |
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
| mysql: | |
| ports: '3306:3306' | |
| appid: | |
| ports: '8000:80' | |
| redis: | |
| ports: '6379: 6379' |
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
| all_males_surivived <- data.combined[which(data.combined$sex == 'male' & data.combined$survived == 1),] | |
| ggplot(all_males_surivived, aes(x = all_males_surivived$age, fill = factor(all_males_surivived$pclass))) + | |
| geom_bar(width = 0.5) + | |
| xlab("Age") + | |
| ylab("Pclass") + | |
| labs(fill = "Age") |
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
| x = -50:50 | |
| y = 500 - (900*x) | |
| plot(x,y, type="l", col="red", xlim=c(-100,100), ylim=c(-1000, 1000)) | |
| abline(h=0, v=0) | |
| title(main="500 - (900*x)", col.main="blue", font.main=2) |
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
| x = -50:50 | |
| y = x^2 | |
| plot(x,y, type="l", col="red", xlim=c(-100,100), ylim=c(-1000, 1000)) | |
| abline(h=0, v=0) | |
| title(main="y=x^2", col.main="blue", font.main=2) |
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
| x = -50:50 | |
| y = x^2-500 | |
| plot(x,y, type="l", col="red", xlim=c(-100,100), ylim=c(-1000, 1000)) | |
| abline(h=0, v=0) | |
| title(main="y=x^2-500", col.main="blue", font.main=2) | |