PHP Basics:
- https://www.youtube.com/watch?v=OK_JCtrrv-c
- https://www.youtube.com/watch?v=1gYtq1-f1Yk
- https://www.youtube.com/playlist?list=PLillGF-Rfqbap2IB6ZS4BBBcYPagAjpjn
Free Laracasts:
| class LoginExample { | |
| // launches our browser | |
| async initBrowser() {} | |
| // creates a new tab | |
| async initPage() {} | |
| // if we give cookie, it uses that | |
| async setCookie() {} | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
| echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list | |
| sudo apt-get update | |
| sudo apt-get install -y mongodb-org |
Quick Playlists:
Learn these books:
| const browserify = require('browserify'); | |
| const b = browserify(); | |
| b.require(`${__dirname}/index.js`, {expose: 'bundle'}).bundle((err, src) => { | |
| console.log(src.toString()); | |
| }); |
| // add/modify the boards.js | |
| // preserve old method of testing but also add a new method of checking current User | |
| setMemberPermission(memberId, isAdmin, isNoComments, isCommentOnly, currentUserId = Meteor.userId()) { | |
| const memberIndex = this.memberIndex(memberId); | |
| // do not allow change permission of self | |
| if (memberId === currentUserId) { | |
| isAdmin = this.members[memberIndex].isAdmin; | |
| } | |
| const change = { |