Skip to content

Instantly share code, notes, and snippets.

Object.assign = function( O, dictionary ) {
var target, src;
// Let target be ToObject(O).
target = Object( O );
// Let src be ToObject(dictionary).
src = Object( dictionary );
// For each own property of src, let key be the property key
@neatshell
neatshell / myscript
Last active May 31, 2024 14:19
simple bash template that handles mandatory and optional arguments
#!/bin/bash
script="myscript"
#Declare the number of mandatory args
margs=2
# Common functions - BEGIN
function example {
echo -e "example: $script -m0 VAL -m1 VAL -o1 -o2 VAL"
}