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
| { | |
| "openapi": "3.0.3", | |
| "info": { | |
| "title": "DIPER (Ogun State) API", | |
| "version": "0.1.0", | |
| "description": "Schemas are inferred from observed traffic and may be incomplete. Requests are authenticated by the Laravel session cookie and require the X-XSRF-TOKEN header (value of the XSRF-TOKEN cookie, URL-decoded) plus X-Requested-With: XMLHttpRequest." | |
| }, | |
| "servers": [ | |
| { | |
| "url": "https://diper.ogunstate.gov.ng" |
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 Newtonsoft.Json; | |
| using Spectre.Console; | |
| using Spectre.Console.Json; | |
| using Spectre.Console.Rendering; | |
| namespace Mykeels.CLI; | |
| public static class IEnumerableCliExtensions | |
| { | |
| private const int HeaderLines = 1; |
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
| import ReactMarkdown from 'react-markdown'; | |
| import remarkGfm from 'remark-gfm'; | |
| export const Markdown = ({ children }: { children: string }) => { | |
| return ( | |
| <> | |
| <style> | |
| <> | |
| {` | |
| .markdown li p { |
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; | |
| using System.Collections.Generic; | |
| using System.Text.Json.Serialization; | |
| using System.Text.RegularExpressions; | |
| namespace Mykeels.Solfa | |
| { | |
| [JsonConverter(typeof(JsonStringEnumConverter))] | |
| public enum Note | |
| { |
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
| import { useEffect, useState } from 'react'; | |
| type Query = `(min-width: ${number}px)` | `(max-width: ${number}px)`; | |
| export const Screens = { | |
| SM: `(max-width: 768px)`, | |
| MD: `(max-width: 1024px)`, | |
| LG: `(max-width: 1280px)`, | |
| XL: `(max-width: 1536px)`, | |
| } as const; |
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
| DROP TABLE IF EXISTS user_courses; | |
| DROP TABLE IF EXISTS users; | |
| DROP TABLE IF EXISTS courses; | |
| -- Create users table | |
| CREATE TABLE IF NOT EXISTS users ( | |
| id INT IDENTITY(1,1) PRIMARY KEY, | |
| user_name VARCHAR(100) NOT NULL | |
| ); |
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; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using ServiceStack.Model; | |
| using ServiceStack.OrmLite; | |
| using ServiceStack.OrmLite.Support; | |
| namespace YourNamespace | |
| { | |
| public static class LeftOuterJoinExtensions |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import { Page } from '@playwright/test'; | |
| export async function transformWebsocketMessage( | |
| page: Page, | |
| fn: <TMessage extends Record<string, unknown>>( | |
| url: string, | |
| message: TMessage | |
| ) => TMessage | |
| ) { | |
| fn = fn || ((url, message) => message); |
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
| // Use a conditional, because You may not want to provide swagger documentation in public environments | |
| if (_configuration.GetValue<bool>("SwaggerConfiguration:EnableSwagger")) | |
| { | |
| services.AddEndpointsApiExplorer(); | |
| services.AddSwaggerGen(options => { | |
| options.AddCustomIds(); | |
| options.AddMetadata(typeof(Program)); | |
| options.SchemaFilter<NullableEnumSchemaFilter>(); | |
| options.SchemaFilter<RequiredPropertiesSchemaFilter>(); |
NewerOlder