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.

iCE40 FPGA iCE aStick with IceStorm Tutorial

Lattice iCE40 FPGA IceStormĀ Tutorial

This tutorial will cover the hardware and software setup for the icestick development board that uses an iCE40 FPGA. The IceStorm open source toolchain will be used for programming the board instead of the vendor tools. For the demonstration, we’ll make a simple binary counter that will display its value with the onboard LEDs. The logic design will be defined/coded with Verilog.

DIY 100W LED Torch Floodlight

DIY Portable 100W LED Torch

In this post, I’ll show the portable 100W LED torch floodlight I made. I originally bought the 100W LED and lens kit many years ago but have just recently decided I would finally make an LED flashlight out of it. A lot of the flashlights online usually don’t have a very large battery capacity and need to be recharged quite often if you use them for an extended period. The problem is a lot of those flashlights also use 16850 batteries that have to be taken out of the flashlight to be recharged with a charger. This prompted me to create my own flashlight with a large battery capacity that is also easily rechargeable without having to take out the batteries every time.

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.