This file contains 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
<pre id="log"></pre> | |
<script> | |
(function() { | |
var old = console.log; | |
var logger = document.getElementById('log'); | |
console.log = function() { | |
for (var i = 0; i < arguments.length; i++) { | |
if (i > 0) { | |
logger.innerHTML += " "; | |
} |
This file contains 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-get update # Fetches the list of available updates | |
sudo apt-get upgrade # Strictly upgrades the current packages | |
sudo apt-get dist-upgrade # Installs updates (new ones) | |
sudo apt autoremove # Removes unused packages | |
google-chrome --disable-web-security | |
chromium-browser --disable-web-security --user-data-dir | |
//for caching git credentials... | |
git config --global credential.helper 'cache --timeout 3600' |
This file contains 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
//circular count within a loop example | |
std::string key = "12345"; | |
for (int i = 0, j = 0; i < 30; ++i) | |
{ | |
std::cout << j; | |
j = (int) ((j + 1) % key.length()); | |
} |
OlderNewer