WIP nap music
This commit is contained in:
2
projects/nap/ideas.txt
Normal file
2
projects/nap/ideas.txt
Normal 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
|
@@ -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)
|
||||||
|
3
projects/nap/src/nap/components/Dates.hx
Normal file
3
projects/nap/src/nap/components/Dates.hx
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
package nap.components;
|
||||||
|
|
||||||
|
typedef Tags = Map<String, Date>;
|
4
projects/nap/src/nap/components/StringComponents.hx
Normal file
4
projects/nap/src/nap/components/StringComponents.hx
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
package nap.components;
|
||||||
|
|
||||||
|
typedef Name = String;
|
||||||
|
typedef Author = String;
|
5
projects/nap/tools/nap-music/build.hxml
Normal file
5
projects/nap/tools/nap-music/build.hxml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-lib kiss
|
||||||
|
-lib nap
|
||||||
|
-cp src
|
||||||
|
--main Main
|
||||||
|
--interp
|
8
projects/nap/tools/nap-music/src/Main.hx
Normal file
8
projects/nap/tools/nap-music/src/Main.hx
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
import kiss.Kiss;
|
||||||
|
import kiss.Prelude;
|
||||||
|
import nap.Archive;
|
||||||
|
|
||||||
|
@:build(kiss.Kiss.build())
|
||||||
|
class Main {}
|
2
projects/nap/tools/nap-music/src/Main.kiss
Normal file
2
projects/nap/tools/nap-music/src/Main.kiss
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
(defun :Void main []
|
||||||
|
(print "Hello world!"))
|
Reference in New Issue
Block a user