This file contains 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 test -d src; then | |
rm -rf src | |
fi | |
while getopts n: flag | |
do | |
case "${flag}" in | |
n) projectName=${OPTARG};; | |
esac | |
done |
This file contains 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
builder.Services.AddSwaggerGen(options => | |
{ | |
options.SchemaFilter<SwaggerExcludeFilter>(); | |
options.DocumentFilter<SwaggerExcludeFilter>(); | |
}); |
This file contains 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; | |
using System.Collections.Generic; | |
namespace SampleNamespace | |
{ | |
class WrappedList<T> | |
{ | |
private List<T> list = new List<T>(); | |
private object sync = new object(); |
This file contains 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
const deepDiff = (local, remote, prefix = "") => { | |
let diff = []; | |
if (local === null && remote === null) return diff; | |
if (local === null || remote === null) { | |
let lnull = (local === null) ? "null" : typeof (local); | |
let rnull = (remote === null) ? "null" : typeof (remote); | |
diff.push(`${prefix} (null): local is ${lnull} and remote is ${rnull}`); | |
return diff; |
This file contains 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.Diagnostics.CodeAnalysis; | |
namespace SampleApplication.Api | |
{ | |
[ExcludeFromCodeCoverage] | |
public static class Program | |
{ | |
private const string DefaultSettingsFile = "appsettings.json"; | |
private static IConfiguration _configuration; | |
private static IConfiguration _loggerOptions; |
This file contains 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.Reflection; | |
namespace Grapevine | |
{ | |
public enum ContentType | |
{ | |
[Metadata(Value = "application/x-authorware-bin", IsBinary = true)] | |
AAB, |
This file contains 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.Net.Http.Headers; | |
public interface IExampleClient | |
{ | |
/* interface methods here */ | |
} | |
public class ExampleClient : IExampleClient | |
{ | |
public static string AccessToken { get; set; } |
This file contains 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
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<title>Copy To Clipboard Example</title> | |
</head> | |
<body> | |
<input id="txtToCopy" type="text"> | |
<button id="btnCopy">Copy!</button> |
This file contains 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
<script> | |
var myIFrame = document.querySelector('#myiframe'); | |
var myUrl = 'http://localhost:1234/api/test'; | |
var myHeaders = [ | |
['Authorization', 'Bearer 1234567890'] | |
]; | |
populateIFrame(myIFrame, myUrl, myHeaders); | |
function populateIFrame(iframe, url, headers) |
This file contains 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
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<title>Encode/Decode Base64</title> | |
<style type="text/css"> | |
body | |
{ | |
margin: 0px; |
NewerOlder