Skip to content

Instantly share code, notes, and snippets.

@seanhess
seanhess / telescope.fits
Created April 25, 2024 15:57
Telescope Headers
COMMENT ------------------------------ Telescope -------------------------------
COMMENT Keys describing the pointing and operation of the telescope. Including
COMMENT the FITS WCS keys describing the world coordinates of the array.
COMMENT ------------------------------------------------------------------------
WCSAXES = 3
WCSAXESA= 3
WCSNAME = 'Helioprojective-cartesian'
WCSNAMEA= 'Equatorial equinox J2000'
CRPIX1 = 1244.1995308776818 / [pix]
@seanhess
seanhess / hls_log.txt
Created September 27, 2023 17:35
hls log file
This file has been truncated, but you can view the full file.
2023-08-08T22:00:52.511469Z | Info | haskell-language-server version: 2.0.0.1 (GHC: 9.6.2) (PATH: /Users/shess/.ghcup/hls/2.0.0.1/lib/haskell-language-server-2.0.0.1/bin/haskell-language-server-9.6.2)
2023-08-08T22:00:52.511669Z | Info | Directory: /Users/shess/.config
2023-08-08T22:00:52.511692Z | Info | Starting (haskell-language-server) LSP server...
GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = False, argsLogFile = Just "/Users/shess/.local/state/nvim/haskell-language-server.log", argsThreads = 0, argsProjectGhcVersion = False}
PluginIds: [ pragmas
, qualifyImportedNames
, moduleName
, splice
, overloaded-record-dot
, alternateNumberFormat
@seanhess
seanhess / docker-compose-fast.yml
Last active June 2, 2023 02:10
Traefik super slow to pick up services on swarmmode
# Traefik Hello World example from docs: https://doc.traefik.io/traefik/getting-started/quick-start/
# This is fast! Router registers in <2 s
version: '3'
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.10
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
@seanhess
seanhess / ghcid-verbose-txt
Created March 2, 2022 19:15
GHCID Verbose Output (Slow)
%OS: darwin
%ARCH: x86_64
%VERSION: 0.8.7
%ARGUMENTS: ["-v"]
Loading stack ghci --test --bench --no-load --ghci-options=-fno-code --ghci-options=-fno-break-on-exception --ghci-options=-fno-break-on-error --ghci-options=-v1 --ghci-options=-ferror-spans --ghci-options=-j ...
%STDERR: cra-products > build (lib)
%STDOUT2: cra-products > build (lib)
cra-products > build (lib)
%STDERR: cra-products > Preprocessing library for cra-products-1.11.0..
%STDOUT2: cra-products > Preprocessing library for cra-products-1.11.0..
@seanhess
seanhess / Assignments.md
Last active July 22, 2021 00:33
Assignments for Love2d Tutorial

Chapter 12

Find an image of a wolf online and draw both it and a sheep. When the player hits a key make a new wolf. Make the wolf get bigger and the sheep spin in a circle.

Chapter 13

@seanhess
seanhess / default.nix
Last active July 26, 2020 01:06
Miso external dependency example (failing)
# Following the approach of https://github.com/dmjio/miso/issues/616
# This fails with an error:
# Setup: Encountered missing dependencies:
# aeson >=1.4.4.0 && <=1.6
let
overlay = self: super:
let
haskell-ghcjs-packages = super.haskell.packages.ghcjs.extend (
self: super: {
@seanhess
seanhess / BeamTutorial.hs
Created December 11, 2018 17:55
Compile error
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE ImpredicativeTypes #-}
@seanhess
seanhess / cors.html
Created May 31, 2017 18:12
Cors example
<html>
<script>
var xhr = new XMLHttpRequest();
xhr.open("POST", 'http://localhost:8080/applications', true);
//Send the proper header information along with the request
xhr.setRequestHeader("Content-type", "application/json");
@seanhess
seanhess / Example.hs
Created January 23, 2017 18:35
XML Parsing
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Simple.FactorTrust.Proprietary where
import Control.Monad.Except (Except)
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Catch (MonadCatch)
import Data.Aeson (ToJSON)
import GHC.Generics (Generic)
import Simple.FactorTrust.SendInquiry (sendAPI)
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TupleSections #-}
module HRForms.Data.Answer where
import Prelude hiding (id)