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
| sudo apt install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title> No Javascript, No fun </title> | |
| </head> | |
| <body> |
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
| ## add docker apt-repository | |
| sudo apt update && \ | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \ | |
| sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' && \ | |
| ## install docker-engine package | |
| sudo apt update && apt-cache policy docker-engine && sudo apt install docker-engine && \ | |
| ## check docker status and informations | |
| sudo systemctl status docker && sudo docker info |
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
| curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && \ | |
| sudo apt-get install -y nodejs |
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
| let isResolved = true; | |
| const p = new Promise( function(resolve, reject) { | |
| if (isResolved) resolve(); else reject(); | |
| }); | |
| p.then(() => { | |
| console.log('resolved'); | |
| }).catch(() => { | |
| console.log('rejected'); |
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
| alias finder-show-all="defaults write com.apple.finder AppleShowAllFiles YES && killall Finder" | |
| alias finder-hide="defaults write com.apple.finder AppleShowAllFiles NO && killall Finder" |
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
| "use strict"; | |
| /* const does not work as "final" in Java */ | |
| const arr = [1, 2, 3]; | |
| // you cannot assign anything on this variable again | |
| // arr = [] | |
| // but you can modify it | |
| arr.push(4); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| </head> | |
| <body> | |
| <form id="form"> | |
| <input id="input" type="text"/> | |
| <input type="submit"/> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| </head> | |
| <body> | |
| <input id="input" type="text"/> | |
| <span id="span"></span> | |
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
| var x = { | |
| dummy() { console.log('this'); } | |
| } | |
| var y = function() {}; | |
| y.prototype.dummy = function() { console.log('proto'); } | |
| x.dummy(); | |
| // y.dummy(); // "TypeError: y.dummy is not a function |
OlderNewer