Skip to content

Instantly share code, notes, and snippets.

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