about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-11-30 19:14:20 -0500
committerelioat <elioat@tilde.institute>2022-11-30 19:14:20 -0500
commitda9e2f846f308c8cbea21b0bd223a4aff071205a (patch)
treed76fd6a57c8710c39f82973f96c5a392c704ff34
parentffdd38a03b0d90a3e19d68f93ba715e49df38620 (diff)
downloaddecember-2022-da9e2f846f308c8cbea21b0bd223a4aff071205a.tar.gz
Moving from elisp to racket
-rw-r--r--src/pokedex.el48
-rw-r--r--src/pokedex.rkt13
2 files changed, 13 insertions, 48 deletions
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 <hi@eli.li>
-;; 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?
+
+