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.Collections.Frozen; | |
using BenchmarkDotNet.Running; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Order; | |
namespace NCalc.Benchmarks; | |
public class ExampleExpression | |
{ | |
public Dictionary<string, Func<Task<object>>> TaskDictionary; |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Mathematics; | |
namespace Benchmark; | |
/// <summary> | |
/// Options used for both parsing and evaluation of an expression. | |
/// </summary> | |
[Flags] |
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 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; | |
typedef PaginatedDataFunction = Function({required int currentPage}); | |
usePagingController<T>(PaginatedDataFunction paginatedDataFunction, | |
{List<Object?>? keys}) { | |
return use(_PagingControllerHook<T>(paginatedDataFunction, keys)); | |
} |
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
var fs = require('fs'); | |
var yaml = require('js-yaml'); | |
var toc = yaml.load(fs.readFileSync('./api/toc.yml')); | |
var namespaces = {}; | |
for (var i = 0; i < toc.length; i++) { | |
var fullnamespace = toc[i].uid; | |
var splitnamespace = fullnamespace.split('.'); |
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
router.route("/products/:id?") | |
.get( (request, response) => ProductController.getProductById(request, response)) | |
.post( (request,response) => ProductController.newProduct(request, response)) | |
.patch( async (request, response) => await ProductController.updateProductById(request, response)) | |
.delete( (request, response) => ProductController.deleteProductById(request, response)); |