diff options
-rw-r--r-- | content-org/blog.org | 19 | ||||
-rw-r--r-- | content/blog/2025/bookmarks-dec.md | 2 | ||||
-rwxr-xr-x | new/splash/bin/build.rb | 11 | ||||
-rwxr-xr-x | new/splash/bin/server.rb | 10 | ||||
-rw-r--r-- | new/splash/lib/splash.rb | 11 | ||||
-rw-r--r-- | new/splash/lib/splash/builder.rb | 8 | ||||
-rw-r--r-- | new/splash/lib/splash/server.rb | 3 | ||||
-rw-r--r-- | new/splash/pages/.dir-locals.el | 1 | ||||
-rw-r--r-- | new/splash/pages/index.html.erb | 9 | ||||
-rw-r--r-- | new/splash/pages/index.rb | 29 | ||||
-rw-r--r-- | new/splash/theme/index.erb | 7 |
11 files changed, 60 insertions, 50 deletions
diff --git a/content-org/blog.org b/content-org/blog.org index d0d162c..604ee42 100644 --- a/content-org/blog.org +++ b/content-org/blog.org @@ -118,7 +118,7 @@ Microsoft GitHub is still not near the biggest sin an Open Source can commit whe -* 2025 [1/3] :@blog: +* 2025 [2/4] :@blog: :PROPERTIES: :EXPORT_HUGO_SECTION: blog/2025 :EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :image_dir "blog/images" :image_max_width 600 @@ -195,12 +195,27 @@ But if I had a chance to create a phone, what would I incorporate? Maybe something pen-shaped? It could even hide in the device itself! Most important features are controllable via real buttons after all. +9. User replacable battery +10. User expandable storage +11. Has good camera It seems I want not a modern-day smartphone, but rather augumented... phone. I look at Palm devices with envy, as adding a moden modem to them would make it as close as it gets. Devices created with purpose (noticed I have not mentined an built-in program store?), and with better interaction model. A device for a more civilized time, as one might say. +** DONE Bookmark dump for December 2024 +CLOSED: [2025-01-03 Fri 16:14] +:PROPERTIES: +:EXPORT_FILE_NAME: bookmarks-dec +:EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :Abstract Link dump! +:END: + +#+attr_shortcode: :month 2024-12 +#+begin_bookmark-month +2024-11 +#+end_bookmark-month + ** DONE 2024 in retrospect CLOSED: [2025-01-02 Thu 21:37] :PROPERTIES: @@ -289,7 +304,7 @@ I look at future with growing distaste and huge amount of panic. Here's to another dull year! -* 2024 [108/109] :@blog: +* 2024 [108/108] :@blog: :PROPERTIES: :EXPORT_HUGO_SECTION: blog/2024 :EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :image_dir "blog/images" :image_max_width 600 diff --git a/content/blog/2025/bookmarks-dec.md b/content/blog/2025/bookmarks-dec.md index 83fa010..e43cf29 100644 --- a/content/blog/2025/bookmarks-dec.md +++ b/content/blog/2025/bookmarks-dec.md @@ -1,7 +1,7 @@ +++ title = "Bookmark dump for December 2024" author = ["MichaĆ Sapka"] -date = 2024-12-02T22:00:00+01:00 +date = 2025-01-03T16:14:00+01:00 categories = ["blog"] draft = false weight = 2001 diff --git a/new/splash/bin/build.rb b/new/splash/bin/build.rb new file mode 100755 index 0000000..404431f --- /dev/null +++ b/new/splash/bin/build.rb @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require_relative '../lib/splash' +require_relative '../../bin/builder' + +builder_class = Crys::Splash::Builder +output_dir = "#{File.dirname(File.dirname(__FILE__))}/output" +file_path = "#{File.dirname(File.dirname(__FILE__))}/pages/#{@options[:filepath]}" + +Crys::BuilderRunner.new(file_path: file_path, output_dir: output_dir, builder_class: builder_class).run diff --git a/new/splash/bin/server.rb b/new/splash/bin/server.rb index 9da053a..15b3432 100755 --- a/new/splash/bin/server.rb +++ b/new/splash/bin/server.rb @@ -1,10 +1,10 @@ #!/usr/bin/env ruby +# frozen_string_literal: true -require_relative "../lib/splash.rb" -require_relative "../../bin/server.rb" +require_relative '../lib/splash' +require_relative '../../bin/server' server_class = Crys::Splash::Server -root = File.dirname(File.dirname(__FILE__)) + "/output" -Crys::ServerRunner.new(root: root, server_class: server_class, section: "Splash Page").serve - +root = "#{File.dirname(File.dirname(__FILE__))}/output" +Crys::ServerRunner.new(root: root, server_class: server_class, section: 'Splash Page').serve diff --git a/new/splash/lib/splash.rb b/new/splash/lib/splash.rb index ce51e17..68674f9 100644 --- a/new/splash/lib/splash.rb +++ b/new/splash/lib/splash.rb @@ -1,10 +1,11 @@ -require_relative "../../lib/crys.rb" -require_relative "splash/server" +# frozen_string_literal: true + +require_relative '../../lib/crys' + +require_relative 'splash/server' +require_relative 'splash/builder' module Crys module Splash end end - - - diff --git a/new/splash/lib/splash/builder.rb b/new/splash/lib/splash/builder.rb new file mode 100644 index 0000000..5a737e9 --- /dev/null +++ b/new/splash/lib/splash/builder.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +module Crys + module Splash + class Builder < Crys::Builder + end + end +end diff --git a/new/splash/lib/splash/server.rb b/new/splash/lib/splash/server.rb index 5c2a473..688d701 100644 --- a/new/splash/lib/splash/server.rb +++ b/new/splash/lib/splash/server.rb @@ -1,7 +1,8 @@ +# frozen_string_literal: true + module Crys module Splash class Server < Crys::Server - end end end diff --git a/new/splash/pages/.dir-locals.el b/new/splash/pages/.dir-locals.el new file mode 100644 index 0000000..4e2be03 --- /dev/null +++ b/new/splash/pages/.dir-locals.el @@ -0,0 +1 @@ +((nil . ((add-hook 'after-save-hook ('message :a)))) diff --git a/new/splash/pages/index.html.erb b/new/splash/pages/index.html.erb new file mode 100644 index 0000000..d033c90 --- /dev/null +++ b/new/splash/pages/index.html.erb @@ -0,0 +1,9 @@ +<html> + <head> + <title>It works!</title> + </head> + <body> + <h1>Test</h1> + Last update: <%= Time.now %> + </body> +</html> diff --git a/new/splash/pages/index.rb b/new/splash/pages/index.rb deleted file mode 100644 index b9772d8..0000000 --- a/new/splash/pages/index.rb +++ /dev/null @@ -1,29 +0,0 @@ -require_relative "../lib/theme.rb" - -module Crys - module Splash - class IndexPage < Theme - BODY = ERB.new <<-EOF - <h1><%= title %></h1> - <%= name %> - EOF - - DATA = { - title: "A page", - name: "A name" - } - - PAGE = "index.erb" - - # filename - # other embbeds - # from .erb file - # from .org file - - - - end - end -end - -p Crys::Splash::IndexPage.new.render diff --git a/new/splash/theme/index.erb b/new/splash/theme/index.erb deleted file mode 100644 index ed1dda8..0000000 --- a/new/splash/theme/index.erb +++ /dev/null @@ -1,7 +0,0 @@ -<html> -<title> <%= title %> -<head> -<%= body %> - -</head> -</html> |