Skip to content

Instantly share code, notes, and snippets.

View dalaing's full-sized avatar

Dave Laing dalaing

  • Brisbane, Australia
View GitHub Profile

I'd like to play something like a small D&D game with you. I'm not particularly fussy about the setting or my character.

Great! I'm happy to help you create a fun and engaging D&D experience. Let's begin by setting up your character and the world. I will be the Dungeon Master, guiding you through the story and controlling the NPCs and environment.

Character: Name: Arin Silverleaf Race: Elf Class: Ranger Background: Outlander Equipment: Longbow, two short swords, leather armor, explorer's pack, and a hunting trap.

David Laing: I'm trying to become a better writer. I'm currently setting a target for the number of words I write a day, and am trying to get into the habit of splitting my time between researching and outlining, writing ugly first drafts, rewriting, and editing. I want to build those habits so I end up with a pipeline with work moving through it reliably. I'm interested in your thoughts on how I should break down and organise these subskills, and how I can drill on these skills with tight feedback loops.

Becoming a better writer requires consistent practice, discipline, and organization. Your plan to develop a pipeline and work on different subskills is a great approach. Here are some recommendations to help you break down and organize these subskills, along with tips for creating tight feedback loops:

Researching and outlining:
    Allocate specific time for research and outlining, such as 1-2 hours a day, depending on your overall writing schedule.

Focus on gathering relevant information

@dalaing
dalaing / ted
Last active March 16, 2023 08:01
David Laing:
Write me the outline of a script of a new Ted Lasso episode
Title: "The Rival's Reunion"
I. Cold Open
A. Ted receives a mysterious letter from an old friend
B. Team shares their pre-game rituals and superstitions
C. Ted announces that AFC Richmond will be playing against a team coached by his old friend
@dalaing
dalaing / ei.md
Last active March 16, 2023 07:46

David Laing: I'd like to create a set of exercises I can facilitate for groups of people, that will help improve their emotional intelligence, and I'd like to either have the exercises be evidence based or plausible to have some kind of grounding in reality and what we know about how humans work. I've got a background in Authentic Relating and Circling if that helps. Can you give me some ideas for how I might plot out that kind of curriculum?

Creating a curriculum for improving emotional intelligence is a great idea. With your background in Authentic Relating and Circling, you have a strong foundation to build upon. Here's a suggested outline for a curriculum based on evidence-based practices and techniques that are grounded in reality:

Introduction to Emotional Intelligence:
    Defining emotional intelligence (EI)
    Importance of EI in personal and professional life
    The four pillars of EI: self-awareness, self-management, social awareness, and relationship management

David Laing: I'd like to write some python code to model simply typed lambda calculus, extended with natural numbers and booleans. I'd like an if expression and an isZero in the language as well. I need to be able to infer the types of the terms, and to serialise and deserialise the terms and types to text.

AI: To create a Python implementation of simply typed lambda calculus extended with natural numbers and booleans, you'll need to define classes for terms, types, and operations. Here's a starting point for the implementation:

Define base classes for terms and types.
Define classes for specific term and type constructors, such as variables, abstractions, applications, natural numbers, booleans, if-expressions, and isZero.
Implement type inference.
Implement serialization and deserialization of terms and types to text.

David Laing I liked the idea of the game "Yoda Stories". It was a procedurally generated adventure game in the Star Wars universe which could be played in under an hour and was still entertaining. It involved adventure game tropes like talking to characters and fetching items for them in order to get access to information or items that would drive the story forward. I'd like to write a game like that, can you help me?

Of course! I'd be happy to help you design a procedurally generated adventure game. Let's start by outlining the basic elements and structure of the game, and then dive into each component in more detail.

Game concept and setting: Choose a theme or setting for your game that appeals to you and your target audience. It could be an original universe or one inspired by popular franchises, like Star Wars, but ensure that you don't infringe on any copyrights.

Procedural generation: This will be the core of your game, determining the layout of the game world, characters, quests, items, and other el

@dalaing
dalaing / gpt3.md
Last active March 16, 2023 04:40
Story telling with GPT

David Laing: Can you give me five ideas for the setting and premise for a historical fiction novel.

AI: Sure, here are five ideas for the setting and premise for a historical fiction novel:

The Great Fire of London: Set in 1666 during the Great Fire of London, the novel follows the lives of several people, including a wealthy merchant, a struggling artist, and a young servant, as they navigate the chaos and destruction caused by the fire and try to rebuild their lives in its aftermath.

The Black Death: Set in 14th century Europe during the outbreak of the Black Death, the novel tells the story of a young doctor who risks his life to treat the sick and tries to uncover the mystery behind the disease's origins.

@dalaing
dalaing / Router.hs
Created May 31, 2018 03:39
Reflex routing
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Control.Monad (void)
import Data.Maybe (fromMaybe)
import Data.Text (Text)
import Reflex.Dom
@dalaing
dalaing / Scratch.hs
Last active April 5, 2018 00:43
FRP Toy
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecursiveDo #-}
module Scratch where
import Control.Applicative ((<|>))
import Control.Monad (forM, forM_, void, forever)
import Data.Functor.Identity (Identity(..))
import Text.Read (readMaybe)
@dalaing
dalaing / Base.hs
Last active March 16, 2018 00:39
Tagged final backpack shennanigans
-- final-bp-base-eval
module Base where
import Data.Functor.Identity
lit :: a -> Identity a
lit = Identity
add :: Num a => Identity a -> Identity a -> Identity a
add x y = (+) <$> x <*> y