Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

{:deps {org.scicloj/kindly-render | |
#_{:mvn/version "0.1.1-alpha"} | |
{:git/url "https://github.com/scicloj/kindly-render" | |
:sha "d77dee338c7d72d157e20b5a45a5513441f5d5e5"} | |
com.github.igrishaev/ring-jdk-adapter {:mvn/version "0.1.1"} | |
;; use newer version to avoid JDK22+ errors | |
io.github.nextjournal/markdown {:mvn/version "0.6.157"} | |
org.clojure/data.json {:mvn/version "2.5.1"}}} |
#!/usr/bin/env hy | |
; A port of the CadQuery example here: https://github.com/CadQuery/cadquery/blob/master/examples/Ex100_Lego_Brick.py | |
; Information about the Hylang Lisp dialect: http://hylang.org/ | |
(import cadquery :as cq) | |
(import cadquery.vis [show]) | |
; User parameters | |
(setv lbumps 2) ; number of bumps long |
;; This is free and unencumbered software released into the public domain. | |
;; | |
;; Anyone is free to copy, modify, publish, use, compile, sell, or | |
;; distribute this software, either in source code form or as a compiled | |
;; binary, for any purpose, commercial or non-commercial, and by any | |
;; means. | |
;; | |
;; In jurisdictions that recognize copyright laws, the author or authors | |
;; of this software dedicate any and all copyright interest in the | |
;; software to the public domain. We make this dedication for the benefit |
Create an account at https://openweathermap.org and get an API key.
Note that it can take up to a couple of hours for the key to become active.
Add an environment variable OPEN_WEATHER_API_KEY
with the value of the key.
run the script:
./weather.clj Toronto,CA
#!/bin/sh | |
#_( | |
#_DEPS is same format as deps.edn. Multiline is okay. | |
DEPS=' | |
{:deps {clj-time {:mvn/version "0.14.2"}}} | |
' | |
#_You can put other options here | |
OPTS=' |
(defn component [] | |
(js/Reflect.construct js/HTMLElement #js [] component)) | |
(set! (.-prototype component) | |
(js/Object.create (.-prototype js/HTMLElement) | |
#js {:connectedCallback | |
#js {:configurable true | |
:value | |
(fn [] | |
(this-as this |