This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project Sdk="Microsoft.NET.Sdk.Web"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net5.0</TargetFramework> | |
| <LangVersion>preview</LangVersion> | |
| <Nullable>enable</Nullable> | |
| </PropertyGroup> | |
| <ItemGroup> |
To unlock these execerises you will need to disabled learning mode.
In Exercism you'll have some exercises to
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env groovy | |
| pipeline { | |
| agent { label 'master' } | |
| stages { | |
| stage('Checkout') { | |
| steps { | |
| checkout scm | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_style = space | |
| indent_size = 4 | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true | |
| [project.json] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #If this isn't the user using the shell, username@host will be displayed (if enabled) | |
| $DEFAULT_USER='Adalbert' | |
| #True to print username@host event if it's the default user | |
| $PRINT_DEFAULT_USER=$FALSE | |
| #Glyphs | |
| $SEGMENT_DELIMETER_GLYPH=[char]0xE0B0 # î‚° | |
| $PREV_CMD_FAIL_GLYPH=[char]0x2718 # ✘ | |
| $BGTASK_GLYPH=[char]0x2699 # âš™ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Assume we have a list of tasks and we need to run them asynchronously, we can use below code: | |
| var toDoTasks = new List<OurTask>(); | |
| IEnumerable<Task<int>> taskListQuery = from toDoTask in toDoTasks select DoSomething(ourTask); | |
| List<Task<int>> taskList = taskListQuery.ToList(); | |
| while (taskList.Count > 0) | |
| { | |
| Task<int> firstFinishedTask = await Task.WhenAny(taskList); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- source: http://www.jamiebegin.com/base36-conversion-in-postgresql/ | |
| CREATE OR REPLACE FUNCTION base36_encode(IN digits bigint, IN min_width int = 0) | |
| RETURNS varchar AS $$ | |
| DECLARE | |
| chars char[]; | |
| ret varchar; | |
| val bigint; | |
| BEGIN | |
| chars := ARRAY['0','1','2','3','4','5','6','7','8','9' | |
| ,'A','B','C','D','E','F','G','H','I','J','K','L','M' |