Skip to content

Instantly share code, notes, and snippets.

View nord-'s full-sized avatar
🏢
Work, work, work...

Rickard Nord nord-

🏢
Work, work, work...
  • ChargeNode
  • Trollhättan, Sweden
View GitHub Profile
@nord-
nord- / just-read-verdana.css
Last active May 24, 2019 09:49
Just-Read theme using Verdana as main font, a nice border around it and a sepia-like background.
@font-face {
font-family: "Source Sans Pro Semibold";
src: url("chrome-extension://dgmanlpmmkibanfdgjocnabmcaclkmod/fonts/SourceSansPro-Semibold.ttf");
}
@font-face {
font-family: "Source Sans Pro Bold";
src: url("chrome-extension://dgmanlpmmkibanfdgjocnabmcaclkmod/fonts/SourceSansPro-Bold.ttf");
}
@nord-
nord- / ContentPageBase.cs
Created August 14, 2019 11:20
ContentPage base class for Xamarin Forms
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
namespace ChargeNode
{
public class ContentPageBase<T> : ContentPage where T : PageViewModelBase
{
protected T PageViewModel
{
@nord-
nord- / ObservableProperty.cs
Created August 14, 2019 11:27
Observable property base class for Xamarin Forms (applicable to WPF as well, just remove the ContentPageBase class)
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
namespace ChargeNode
{
[DefaultProperty("Value")]
public class ObservableProperty<T> : ObservablePropertyBase
{
private T _value;
@nord-
nord- / gitflow-breakdown.md
Created January 11, 2021 10:07 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@nord-
nord- / NordPool_ApexChart.yaml
Created September 13, 2022 12:53
Display NordPool hourly prices in a nice ApexChart
type: custom:apexcharts-card
experimental:
color_threshold: true
header:
show: false
title: Nordpool Pris
show_states: false
graph_span: 2d
span:
start: day
@nord-
nord- / Pause.psm1
Created April 18, 2024 12:33
Pause/Press any key to continue functionality in PowerShell
Function Pause ($Message = "Press any key to continue…") {
    If ($psISE) {
        # The "ReadKey" functionality is not supported in Windows PowerShell ISE.
 
        $Shell = New-Object -ComObject "WScript.Shell"
        $Button = $Shell.Popup("Click OK to continue.", 0, "Script Paused", 0)
 
        Return
    }