Skip to content

Instantly share code, notes, and snippets.

@jonathantneal
jonathantneal / README.md
Last active March 19, 2024 23:31
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@Rembane
Rembane / Shootyear.hs
Created January 27, 2013 20:36
The awesome code of https://gist.github.com/4638535 implemented in Haskell, but sadly without GUI.
module Main where
import Data.Maybe
isShootYear yr = [mod yr 400 == 0, mod yr 4 == 0, mod yr 100 /= 0] == [True, True, False]
isShootYearMsg True = "är ett skottår"
isShootYearMsg False = "är inte ett skottår"
maybeRead :: Read a => String -> Maybe a
maybeRead s = case reads s of