Skip to content

Instantly share code, notes, and snippets.

@secretorange
secretorange / DynamoScanPagination.cs
Last active November 3, 2023 14:21
How to manually paginate whilst scanning using AWS DynamoDB and C# SDK
public async Task<IPaged<Item>> Pagination(string serialisedPaginationInfo, int size)
{
// We will fill our 'page' until it's met the pageSize or we complete our search (i.e. scan ALL records)
var page = new List<DM.Document>();
// Get a reference to the table. Only the lower level API seems to suppot manual pagination
var table = Dynamo.GetTargetTable<Item>();
var pagination = String.IsNullOrWhiteSpace(serialisedPaginationInfo)
? new PaginationInfo()
@rupeshtiwari
rupeshtiwari / Setting up Webpack for Typescript Project From Scratch.md
Last active July 22, 2024 11:22
Setting up Webpack for Typescript Project From Scratch

Setting up Webpack for any Typescript project from Scratch

Welcome to step by step hands-on guide to setup webpack in your upcoming typescript project. Please follow the steps and you should be able to create your own webpack project. Please download the source code from github.

You will learn below things:

  1. ✅Create a Typescript node.js project.
  2. ✅Install Dependencies with webpack & typescripts.
  3. ✅Use Webpack CLI to crate webpack.config.js file and modify webpack.config.js based on our need.