Skip to content

Instantly share code, notes, and snippets.

@jpierson
jpierson / advent-of-code-2017-elm-day1.elm
Last active December 8, 2017 05:19
Code solution for Advent of Code 2017 Day 1 (http://adventofcode.com/2017/day/1)
module Main exposing (main)
import Html exposing (Html, li, text, ul)
import Html.Attributes exposing (style)
-- Advent of Code 2017 - Day 1 (http://adventofcode.com/2017/day/1)
-- https://ellie-app.com/hBMTrVXyna1/1
main : Html msg
main =
@jpierson
jpierson / advent-of-code-2017-elm-day1-part2.elm
Created December 8, 2017 05:20
Code solution for Advent of Code 2017 Day 1 (http://adventofcode.com/2017/day/1)
module Main exposing (main)
import Html exposing (Html, li, text, ul)
import Html.Attributes exposing (style)
-- Advent of Code 2017 - Day 1 Part 2 (http://adventofcode.com/2017/day/1)
main : Html msg
main =
ul []
@jpierson
jpierson / min-max-dates.md
Last active May 14, 2024 12:16
A summary of min/max date values used by various systems

Summary of Min/Max date values for various systems

System/Type Min Max Notes
.NET (DateTime) 1/1/0001 12:00:00 AM 12/31/9999 11:59:59 PM
T-SQL (datetime) January 1, 1753 December 31, 9999 Default value is 1900-01-01 00:00:00
Oracle (DATE) 0001-01-01 9999-12-31
Oracle (TIME) 00:00:00 24:00:00
Oracle (TIMESTAMP) 0001-01-01-00.00.00.000000 9999-12-31-23.59.59.999999
ISO 8601 1583-01-19T0:00:00Z 9999-12-31T023:59:59Z
@jpierson
jpierson / nix-pwsh-cheatsheet.md
Last active May 7, 2023 15:25
Unix/Linux to Powershell Command Cheatsheet

Unix/Linux to Powershell Command Cheatsheet

This guide aims to document useful commands that I commonly see used in Linux and Unix environments to their closest equivalent in Powershell.

Command: wc

Use: Counts some aspect of the input stream and returns a summarized value as output.

@jpierson
jpierson / windows-long-path-support.md
Created October 11, 2018 13:14
windows-long-path-support
@jpierson
jpierson / shadow-dom-example.html
Last active August 25, 2020 16:10
Shadow DOM example for isolating HTML content embedded from a CMS
<!doctype html>
<html>
<head>
<style>
.row {
display: flex;
}
.column {