I hereby claim:
- I am thomaslevesque on github.
- I am thomaslevesque (https://keybase.io/thomaslevesque) on keybase.
- I have a public key whose fingerprint is 32C8 E72A EC90 6E8B 79BF 36C3 7AF5 E7A4 FE44 396B
To claim this, I am signing this object:
| [repo] | |
| defaultRemoteName = origin | |
| mainBranchName = master | |
| [alias] | |
| diffc = diff --cached | |
| logg1 = log --graph --oneline | |
| current-branch = rev-parse --abbrev-ref HEAD | |
| publish = !git push -u $(git config repo.defaultRemoteName) $(git current-branch) | |
| finish-branch = !branchName=$(git current-branch) && git fetch $(git config repo.defaultRemoteName) $(git config repo.mainBranchName):$(git config repo.mainBranchName) && git checkout $(git config repo.mainBranchName) && git branch -d $branchName && git fetch -p $(git config repo.defaultRemoteName) |
| └─┬ [email protected] | |
| ├─┬ [email protected] | |
| │ ├── [email protected] | |
| │ ├── [email protected] | |
| │ ├─┬ [email protected] | |
| │ │ ├── [email protected] | |
| │ │ ├─┬ [email protected] | |
| │ │ │ └─┬ [email protected] | |
| │ │ │ └── [email protected] | |
| │ │ ├── [email protected] |
| // ==UserScript== | |
| // @name GitHub Markdown shortcuts | |
| // @namespace ThomasLevesque | |
| // @include https://github.com/* | |
| // @include https://gist.github.com/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| using FakeItEasy; | |
| using FakeItEasy.Creation; | |
| namespace TestUtilies | |
| { | |
| public abstract class FakeConfigurator<T> : FakeOptionsBuilder<T> | |
| { | |
| protected override void BuildOptions(IFakeOptions<T> options) | |
| { | |
| options.ConfigureFake(ConfigureFake); |
I hereby claim:
To claim this, I am signing this object:
| void Main() | |
| { | |
| ParseAndPrintChallenge(@"Bearer realm=""FooCorp"", error=invalid_token, error_description=""The access token has expired"""); | |
| } | |
| void ParseAndPrintChallenge(string input) | |
| { | |
| var challenge = Grammar.Challenge.Parse(input); | |
| Console.WriteLine($"Scheme: {challenge.Scheme}"); | |
| Console.WriteLine($"Parameters:"); |
| void Main() | |
| { | |
| string errorCodesFileUrl = "https://raw.githubusercontent.com/dotnet/roslyn/master/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs"; | |
| string errorCodesFileContent = new WebClient().DownloadString(errorCodesFileUrl); | |
| var syntaxTree = CSharpSyntaxTree.ParseText(errorCodesFileContent); | |
| var root = syntaxTree.GetRoot(); | |
| var enumDeclaration = | |
| root.DescendantNodes() | |
| .OfType<EnumDeclarationSyntax>() | |
| .First(e => e.Identifier.ValueText == "ErrorCode"); |
Parsed from the Roslyn source code using Roslyn.
| Code | Severity | Message |
|---|---|---|
| CS0006 | Error | Metadata file '{0}' could not be found |
| CS0009 | Fatal | Metadata file '{0}' could not be opened -- {1} |
| CS0012 | Error | The type '{0}' is defined in an assembly that is not referenced. You must add a reference to assembly '{1}'. |
| CS0016 | Error | Could not write to output file '{0}' -- '{1}' |
| pre { | |
| padding: 0; | |
| border: none; | |
| } | |
| article h3 { | |
| font-size: 20px; | |
| } | |
| code { |
| Pattern: \[SwaggerResponse\((?<code>\d+), (?<type>typeof\([A-Za-z\.\<\>]+\)), (?<desc>\"[^\"]+\")\)\] | |
| Replacement: [SwaggerResponse(${code}, ${desc}, ${type})] |