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://gist.github.com/crtr0/2896891 | |
https://socket.io/docs/rooms-and-namespaces/ |
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
Need to create extension: | |
1. manifest.json | |
2. 19x19px PNG file | |
3. popup.html | |
4. popup.js |
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://certbot.eff.org/#ubuntutrusty-nginx | |
https://askubuntu.com/questions/363200/e-unable-to-correct-problems-you-have-held-broken-packages | |
Use aptitude instead of apt-get. It is more intelligent. It not only will handle downgrading conflicting packages for you, but will make a series of recommendations asking you which of many possible suggested working scenarios you would like. | |
sudo aptitude install myNewPackage | |
If you don't have aptitude on your machine yet, get it with |
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
Suppose we have a schema as follows | |
var User = require('./schemas/UserSchema').User; | |
and we want to write unit test for like bellow code: | |
var getUserById = function () { | |
return User.findOne({_id: '001'}).exec(); | |
}; |
OlderNewer