Skip to content

Instantly share code, notes, and snippets.

public readonly struct Measurement
{
public Measurement()
{
Value = double.NaN;
Description = "Undefined";
}
public Measurement(double value, string description)
{
var v = $"Count ist: { this.Is.Really.Something()
.That.I.Should(
be + able)[
to.Wrap()] }.";
var configuration = new Configuration(new Dictionary<string, string>() {
["product"] = "shield"
});
public Dictionary<string, string> Config()
{
return new Dictionary<string,string>(){
["product"] = "shield"
};
}
class Tokenizer
{
public string Tokenize(string code)
{
var regexes = new string[] {
// ...
};
var statements = explode(" ", code);
var tokens = new string[] {};
public string ParseBetterJSAlternative(string code)
{
var regexes = [
// ...
];
var statements = explode(" ", code);
var tokens = new string[] {};
foreach (var regex in regexes)
{
public void RequestMethod(string url)
{
// ...
}
var request = RequestMethod(requestUrl);
SlackChannel("bytehide", request, "get users");
public void OldRequestMethod(string url)
{
// ...
}
public void NewRequestMethod(string url)
{
// ...
}
public class SlackNotification
{
//...
public void Send()
{
SendMessage(this._to, this._files, this._body);
}
}
public class SlackNotification
{
//...
public void Handle()
{
SendMessage(this._to, this._files, this._body);
}
}