If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).
Example below explains implications for different implementations.
| X | kick | snare | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| X | ||||||||||
| X | ||||||||||
| X | ||||||||||
| X | kick | |||||||||
| X | ||||||||||
| X | ||||||||||
| X | ||||||||||
| X | kick | snare | clap | |||||||
| X |
| @ECHO off | |
| :top | |
| CLS | |
| ECHO Choose a shell: | |
| ECHO [1] cmd | |
| ECHO [2] bash | |
| ECHO [3] PowerShell | |
| ECHO [4] Python | |
| ECHO. | |
| ECHO [5] restart elevated |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| #!/usr/bin/perl | |
| use Mysql; | |
| use strict; | |
| use vars qw($school_name); | |
| use vars qw($pass); | |
| require "./cgi-lib.pl"; |
| Original text here: https://whydavewhy.com/2013/08/16/loyalty-and-layoffs/ |
| # A simple Makefile alternative to using Grunt for your static asset compilation | |
| # | |
| ## Usage | |
| # | |
| # $ npm install | |
| # | |
| # And then you can run various commands: | |
| # | |
| # $ make # compile files that need compiling | |
| # $ make clean all # remove target files and recompile from scratch |
Couldn't find the text of this for a while...
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |