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
| class Guid { | |
| public static newGuid(): Guid { | |
| return new Guid('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { | |
| const r = Math.random() * 16 | 0; | |
| const v = (c == 'x') ? r : (r & 0x3 | 0x8); | |
| return v.toString(16); | |
| })); | |
| } | |
| public static get empty(): string { | |
| return '00000000-0000-0000-0000-000000000000'; |
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
| SQL Server 2017 | |
| ---------------- | |
| Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83 | |
| Developer - 22222-00000-00000-00000-00000 | |
| Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B | |
| Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89 | |
| Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC | |
| https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/ |
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
| Visual Studio 2022 | |
| Enterprise : | |
| VHF9H-NXBBB-638P6-6JHCY-88JWH | |
| Professional: | |
| TD244-P4NB7-YQ6XK-Y8MMM-YWV2J | |
| SQL Server 2017 | |
| ---------------- | |
| Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83 |
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
| using System.IO; | |
| using System.Reflection; | |
| using System.Web; | |
| using System.Web.SessionState; | |
| using NUnit.Framework; | |
| namespace Mvc.Tests | |
| { | |
| [TestFixture] |
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
| gulp.dest(function(file){ return file.base; }) |
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
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="https redirect" stopProcessing="true"> | |
| <match url="(.*)" /> | |
| <conditions> | |
| <add input="{HTTPS}" pattern="^OFF$" /> | |
| </conditions> | |
| <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" /> | |
| </rule> |
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
| public class RestReponseDto<T> where T:class | |
| { | |
| string ErrorMessage{get;set;} | |
| bool IsSuccess{get;set;} | |
| T ResultData{get;set;} | |
| } |
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
| public class Solution { | |
| public int CalPoints(string[] ops) { | |
| var score = new List<int>(); | |
| for (int i = 0; i < ops.Length; i++) | |
| { | |
| string c = ops[i]; | |
| if (c == "+") | |
| { |
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
| # Method: POST | |
| # Headers | |
| # Authorization Bearer eyJhbGciO... (access token) | |
| # Content-Type: application/json | |
| # Body | |
| # { | |
| # "username": "test-user", | |
| # "groups": ["Comp1"], // doesn't work, even if it is in the docs | |
| # "lastName": "test", |
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
| //ConfigureServices | |
| services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) | |
| .AddJwtBearer(options => | |
| { | |
| options.MetadataAddress = "https://{host}/auth/realms/{realm}/.well-known/openid-configuration"; | |
| options.RequireHttpsMetadata = true; | |
| options.IncludeErrorDetails = true; | |
| options.SaveToken = true; |