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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveAnyClass #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# OPTIONS_GHC -Wno-missing-signatures #-} | |
module Woot where | |
import Data.Maybe (fromMaybe) | |
import Data.Text (Text) | |
import Data.Text qualified as T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's a Python script to open a directory of FITS files, combine them, and render an image with WCS axis labels using astropy and numpy. This script assumes that all FITS files are in the specified directory, and the files are named in a way that allows them to be sorted correctly to reconstruct the Y axis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE StandaloneDeriving #-} | |
{-# LANGUAGE TypeSynonymInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE PartialTypeSignatures #-} | |
{-# LANGUAGE ImpredicativeTypes #-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"); |
NewerOlder