Twitter

Just created a #LEGO Brickheadz figure of my girl and me. Super happy with the result! https://t.co/t4JkJsukYT

1 month ago

Follow

Tomorrow: #meetup @wehkamp! Pizza. Beer. Subject: #meetup with chatbots. Get your own running in 5 minutes!… https://t.co/5yrtRlICxf

2 months ago

Follow

Trying to learn some #Python3 👊. Made a palindrome detector: https://t.co/pcWQOYGyCI "A man, a plan, a canal – Pana… https://t.co/pcWQOYGyCI

2 months ago

Follow

How to do proper dependency injection with IOption support in .NET Console apps? It not that hard! ♥️#csharp https://t.co/cfGSYUMc5K

3 months ago

Follow

Categories

Tag: Code

.NET

Part 2: Calculations with Roman Numerals using C#

In a previous article I wrote how to parse Roman Numerals in C#. This article will focus on how to calculate with the class in an intuitive way. It will show how to implement implicit casting and the add and subtraction operator overloads. Fun stuff that’s probably useful in other projects.

JavaScript, Node.js, TypeScript

Support both Node.js and browser JS in one TypeScript file

TypeScript allows for better JavaScript development. JavaScript is getting useful in more domains. But different systems require different ways of handling modules and exposing features. TypeScript solves this by compiling differently when a target is specified.

But what if you need a TypeScript script that supports both vanilla browser JS and Node.js? What if you need to expose 10+ classes?

TypeScript

Strongly Typed Events 0.3.0 – now with Signals

Turns out that I needed an even smaller type of event: the signal. It is an event that has no data; it just fires. The Strongly Typed Events project started with the IEvent event that was styled after .Net. Then the ISimpleEvent was added in 0.2.0, for scenarios when no sender is necessary. Now I’ve added the ISignal to version 0.3.0.

.NET

Offline Google Authentication for MVC.Net

A while back I wanted to create an ASP.Net MVC client for Google Fit that charted my weight. It turned out that offline Google authentication wasn’t as straight forward as one would hope. This article will explain how it works using Google Fit as an example. The code is applicable to the whole Google API. In this example only one authorization is stored and used across multiple accounts.

.NET, Front

Getting your weight from Google Fit with C#

I think Google Fit is a wonderful platform. It connects multiple devices and apps to give you insight into your fitness. I connected a Withing Smart Body Analyzer scale to the system. What I’m missing is a simple min / max weight per day graph. This blog describes how to get the weight data out of Google Fit into your C# application. You can use your own chart solution to plot a graph.