C# Code Snippets Ranges

C# Ranges

In this code snippet, we will take a look at ranges in C#. Ranges give you a quick and easy syntax to get a range/interval of elements from a collection. For example, if an array has 10 elements you can specify a range from the 2nd to the 5th element and that slice of the array will be returned to you.

C# Code Snippets DateTime

C# DateTime

In this code snippet, we will take a look at DateTime in C#. DateTime is used to represent dates and times in code. The DateTime class contains many useful methods to manipulate the date(formatting the date, adding/subtracting years, months, days, hours, …). Let’s have a look at the code below to see how to use DateTime.

Docker Cheatsheet

Docker Cheatsheet

This post is a cheatsheet for Docker. I wrote this for myself so if I ever have trouble remembering some of the more common commands I can just look them up on my own site. And maybe someone out there on the internet will find this useful for themselves as well.

TSQL Cheatsheet

T-SQL Cheatsheet

This short post is a cheat sheet for transact SQL or T-SQL for Microsoft Server. I wrote this for myself so if I ever have trouble remembering some of the more common queries(as I don’t work with databases on a daily basis) I can just look them up on my own site. And maybe someone out there on the internet will find this useful for themselves as well.

Attiny 85 Digispark Board

In this post, I’ll show you how to use and program the Attiny 85 Digispark board with the Arduino IDE. I’ll demonstrate how to add the board to the Arduino IDE and how to install the drivers. Finally, we’ll make an example sketch that simply blinks an LED.

Advertisment ad adsense adlogger