Source : https://stackoverflow.com/a/47177899
console.image = function(url, size = 100) {
const image = new Image();
image.src = url;
image.onload = function() {
var style = [
Source : https://stackoverflow.com/a/47177899
console.image = function(url, size = 100) {
const image = new Image();
image.src = url;
image.onload = function() {
var style = [
# Source: https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches | |
# To update the local list of remote branches: | |
git remote update origin --prune |
{ | |
"bracket-pair-colorizer-2.colors": [ | |
"Gold", | |
"Orchid", | |
"LightSkyBlue", | |
"Salmon", | |
"LawnGreen", | |
"DarkOrange", | |
"Cornsilk" | |
], |
When working with online editor, the back gesture on a Mac can become very frustrating. Here are some helpful commands disable the back gesture:
# Disable back gesture in specific apps
# Chrome
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
# FireFox
defaults write org.mozilla.firefox AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Brave
See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
/* | |
* Created by Adrian Jost | |
* Feel free to use, but please credit me | |
* | |
* Start the game by calling `ttt()` | |
*/ | |
function drawBoard(round, board){ | |
console.group(`Score after round ${round}`); | |
console.log(" "); | |
console.log(' ' + (board["7"] || '7 ') + " | " + (board["8"] || ' 8 ') + " | " + (board["9"] || ' 9 ')); |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |