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 React, { useState, useEffect } from 'react'; | |
// FakeFetch function to simulate a fetch request with a fixed delay of 10 seconds | |
const FakeFetch = url => { | |
return new Promise((resolve, reject) => { | |
const delay = Math.random() < 0.5 ? 0 : 10000; // Either 0ms or 10000ms (10 seconds) | |
console.log(`FakeFetch delay: ${delay}ms`); | |
setTimeout(() => { | |
// Simulate a successful response with dummy data |
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
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 | |
properties: | |
assertions: | |
- resource: Microsoft.Windows.Developer/OsVersion | |
directives: | |
description: Verify min OS version requirement | |
allowPrerelease: true | |
settings: | |
MinVersion: '10.0.22000' | |
resources: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please see this Twitter thread for context
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
// App Service - Bicep module | |
// Generated by NubesGen (www.nubesgen.com) | |
// Module requirements | |
// Serverless tier or General Purpose GP_Gen5_2 | |
// Outputs: database URL, username & password | |
// Check integration with App Service + Key Vault | |
@description('The name of your application') | |
param applicationName string |
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.Data; | |
using System.Data.SqlClient; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Bogus; | |
using Dapper; | |
using Microsoft.AspNetCore.Mvc; |
NewerOlder