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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace dotnet_helpers_linq | |
{ | |
/// <summary> | |
/// Contains helpers extension methods for <see cref="IEnumerable{T}"/> |
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.Linq.Expressions; | |
using Microsoft.AspNetCore.Mvc; | |
using MongoDB.Bson; | |
using MongoDB.Bson.Serialization.Attributes; | |
using MongoDB.Driver; | |
namespace mongodbapiexample.Controllers; | |
[ApiController] | |
[Route("[controller]")] |
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
// Push Notifications for tracking changes on RavenDB entities Explained | |
// The Changes API is a Push Notifications service, | |
// that allows a RavenDB Client to receive messages from a RavenDB Server regarding events that occurred on the server. | |
// Being able to reach your visitors without any kind of effort | |
// server -> request -> push service -> message arrives | |
// capabilities of push notifications | |
// Web Push Notifications are used for simple tasks like alerting a user about upcoming sales or events. | |
// They display an icon and a few lines of text that the user can then click to open and | |
// go to a specific destination on your site |
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
public class ShoppingBasketTests | |
{ | |
[Fact] | |
public async Task ShoppingBasket_DiscountSuccess() | |
{ | |
var discounts = DiscountsFactory.CreateDiscounts(); | |
var basket = new ShoppingBasket(discounts); |
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
{ | |
"short_name": "doviz", | |
"name": "doviz - exchange rates", | |
"icons": [ | |
{ | |
"src": "favicon.ico", | |
"sizes": "64x64 32x32 24x24 16x16", | |
"type": "image/x-icon" | |
}, | |
{ |
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" /> | |
<link rel="icon" href="./favicon.ico" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="theme-color" content="#000000" /> | |
<meta | |
name="description" | |
content="doviz - exchange rates - Search... (type the currency code such as EUR, USD, TRY)" |
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
// cache stands for storage of the browser | |
const CACHE_NAME = "version-1"; | |
const urlsToCache = ['index.html', 'offline.html']; | |
const self = this; | |
self.addEventListener('install', (event) => { | |
console.log('open cache'); | |
event.waitUntil(caches.open(CACHE_NAME).then((cache) => { | |
return cache.addAll(urlsToCache); | |
})) | |
}); |
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
import axios from 'axios'; | |
const URL = "https://api.exchangeratesapi.io/latest"; | |
export const fetchExchangeRates = async (query) => { | |
const { data } = await axios.get(URL, { | |
params: { | |
base: query | |
} | |
}); |
NewerOlder