Skip to content

Instantly share code, notes, and snippets.

Avatar

Jon Seeley fooberichu150

View GitHub Profile
@fooberichu150
fooberichu150 / Application.cs
Created Nov 22, 2018
Dependency Injection in a DotNetCore Console Application
View Application.cs
using System;
using Microsoft.Extensions.Options;
namespace MyConsoleApplication
{
public class Application
{
private readonly IOptions<MySettings> _settings = null;
public Application(IOptions<MySettings> mySettings)
View countdown-timer.jsx
// code used for https://www.seeleycoder.com/blog/react-countdown-timer
import * as React from 'react';
import PropTypes from 'prop-types';
// https://www.npmjs.com/package/countdown
import countdown from 'countdown';
const TimerSpanDisplay = function TimerSpanDisplay(props) {
const { className, value, label } = props;
You can’t perform that action at this time.