You can pass multiple arguments to the dbg(…) macro. The output of dbg(x, y, z)
is same as dbg(x); dbg(y); dbg(z);
:
dbg(42, "hello world", false);
Note that you have to wrap "unprotected commas" in parentheses:
# Location: ($env:PSModulePath | ForEach-Object { ([string]$_).Split(";")[0] })\RishiPowerShell | |
# Rishi K. (CodesOfRishi) | |
# Bulk nslookup | |
function Resolve-Host {#{{{ | |
param ( | |
[Parameter(Mandatory=$false)] | |
[string]$OutputSeparator = "`n", | |
[switch]$ChangeList, |
# Sanitize/Un-sanitize a URL/IP - RishiK. | |
while (1) { | |
if ($args[0]) { | |
$url=$args[0] | |
} | |
else { | |
$url = Read-Host "Enter URL/IP >>" | |
} |
You can pass multiple arguments to the dbg(…) macro. The output of dbg(x, y, z)
is same as dbg(x); dbg(y); dbg(z);
:
dbg(42, "hello world", false);
Note that you have to wrap "unprotected commas" in parentheses:
// overloading relational operator for a STL class | |
bool operator<(const Name &rhs) const { return value < rhs.value; } | |
bool operator==(const Name &rhs) const { return value == rhs.value; } |
#!/bin/sh | |
xkbcomp -xkb "$DISPLAY" - | sed 's#key <CAPS>.*#key <CAPS> {\ | |
repeat=no,\ | |
type[group1]="ALPHABETIC",\ | |
symbols[group1]=[ Caps_Lock, Caps_Lock],\ | |
actions[group1]=[ LockMods(modifiers=Lock),\ | |
Private(type=3,data[0]=1,data[1]=3,data[2]=3)]\ | |
};\ | |
#' | xkbcomp -w 0 - "$DISPLAY" |