Markdown collection by Brussell
$ green-blue background and text $
# and [ ] is orange
\Green
{These are orange too}
% comments
'green'
x.CustomPrefixHandler = (m) => | |
{ | |
if (m.RawText.StartsWith(yourPrefixHere)) | |
return yourPrefixHere.Length; | |
return -1; | |
}; |
17:30:35.344: CPU Name: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz | |
17:30:35.344: CPU Speed: 3200MHz | |
17:30:35.344: Physical Cores: 4, Logical Cores: 4 | |
17:30:35.344: Physical Memory: 8136MB Total, 4188MB Free | |
17:30:35.344: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit) | |
17:30:35.344: Running as administrator: false | |
17:30:35.344: Aero is Enabled (Aero is always on for windows 8 and above) | |
17:30:35.344: Portable mode: false | |
17:30:35.362: OBS 19.0.2 (64bit, windows) | |
17:30:35.362: --------------------------------- |
Markdown collection by Brussell
$ green-blue background and text $
# and [ ] is orange
\Green
{These are orange too}
% comments
'green'
public class TimeSpanReader : TypeReader | |
{ | |
private static Regex _pattern = new Regex(@"(\d+[dhms])", RegexOptions.Compiled); | |
public override Task<TypeReaderResult> Read(ICommandContext _, string rawInput, IServiceProvider __) | |
{ | |
var result = TimeSpan.Zero; | |
var input = rawInput.ToLower(); | |
var matches = _pattern.Matches(input) | |
.Cast<Match>() | |
.Select(m => m.Value); |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
WHITE='\033[1;37m' | |
GREEN='\033[0;32m' | |
NORMAL='\033[0m' | |
print_color() { | |
printf "${GREEN}==> ${WHITE}%s${NORMAL}\n" "$1" | |
} |