WIP nap music

This commit is contained in:
2021-05-31 15:26:11 -06:00
parent 13464a4ee2
commit 74f760cf2c
7 changed files with 35 additions and 0 deletions

2
projects/nap/ideas.txt Normal file
View File

@@ -0,0 +1,2 @@
program that helps you cobble together journal entries retroactively using your texts and message history from that day. and calendar etc
music player that youtubeDLs the songs you like, and will play songs by artists you like

View File

@@ -24,6 +24,17 @@
(system.checkEntryInOrOut this e)) (system.checkEntryInOrOut this e))
e)) e))
(defmethod saveEntry [:Entry e]
(File.saveContent
(Path.join [archiveDir "entries" (e.id.withExtension "json")])
(Json.stringify e))
// TODO save its components? but it's not obvious how, because it only knows the string keys of them.
// Better yet, retrieving components with mutable access should be done through a
// (withComponent...) macro that serializes the component after the block is done.
//
)
(defun :Entry _newEntry [] (defun :Entry _newEntry []
(object (object
id (Uuid.v4) id (Uuid.v4)

View File

@@ -0,0 +1,3 @@
package nap.components;
typedef Tags = Map<String, Date>;

View File

@@ -0,0 +1,4 @@
package nap.components;
typedef Name = String;
typedef Author = String;

View File

@@ -0,0 +1,5 @@
-lib kiss
-lib nap
-cp src
--main Main
--interp

View File

@@ -0,0 +1,8 @@
package;
import kiss.Kiss;
import kiss.Prelude;
import nap.Archive;
@:build(kiss.Kiss.build())
class Main {}

View File

@@ -0,0 +1,2 @@
(defun :Void main []
(print "Hello world!"))