From da9e2f846f308c8cbea21b0bd223a4aff071205a Mon Sep 17 00:00:00 2001 From: elioat Date: Wed, 30 Nov 2022 19:14:20 -0500 Subject: Moving from elisp to racket --- src/pokedex.el | 48 ------------------------------------------------ src/pokedex.rkt | 13 +++++++++++++ 2 files changed, 13 insertions(+), 48 deletions(-) delete mode 100644 src/pokedex.el create mode 100644 src/pokedex.rkt diff --git a/src/pokedex.el b/src/pokedex.el deleted file mode 100644 index c7d01c1..0000000 --- a/src/pokedex.el +++ /dev/null @@ -1,48 +0,0 @@ -;;; pokedex.el --- a pokedex for emacs -*- lexical-binding: t; -*- - -;; as is possible, this is placed into the public domain - -;; Author: eli_oat -;; Keywords: pokemon, pokedex -;; Version: 0.0.1 - -;; MIT License - -;; Copyright (c) [year] [fullname] - -;; Permission is hereby granted, free of charge, to any person obtaining a copy -;; of this software and associated documentation files (the "Software"), to deal -;; in the Software without restriction, including without limitation the rights -;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -;; copies of the Software, and to permit persons to whom the Software is -;; furnished to do so, subject to the following conditions: - -;; The above copyright notice and this permission notice shall be included in all -;; copies or substantial portions of the Software. - -;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -;; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -;; SOFTWARE. - -;;; Commentary: - -;; A pokedex for emacs. - -;;; Code: - -;; code goes here -(defun greet (name) - "a totally pointless function to ensure I know what I'm doing, at least a little" - (insert (format "hi there %s!\n" name))) - -(greet "banana") -(greet "kiwi") -(greet "pineapple") - -(provide 'pokedex) -;;; pokedex.el ends here - diff --git a/src/pokedex.rkt b/src/pokedex.rkt new file mode 100644 index 0000000..6051788 --- /dev/null +++ b/src/pokedex.rkt @@ -0,0 +1,13 @@ +#lang racket + +;; let's try to make a pokedex in racket! + +;; first step will be to write a function to query the pokeAPI +;; like so, https://pokeapi.co/api/v2/pokemon/ditto + +;; once there is a function in place that returns data I will +;; have a choice to make -- do I want to always query the API, +;; do I want to cache results, or do I want to create an offline +;; repository of poke-data to search through and sometimes update? + + -- cgit 1.4.1-2-gfad0 tests/test_plugins_disco.h?id=9a68aab01149c9781b899d482eb2c34f2cdf505c'>test_plugins_disco.h
blob: 4377e28eb59faffdab6e121b4e5e9746ab7b71f3 (plain) (blame)
1
2
3
4
5
6
7