-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
awb99
committed
Apr 17, 2024
1 parent
ef4de1c
commit c547756
Showing
11 changed files
with
114 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
(ns demo.notebook.err-cljs | ||
(:require [bongistan])) | ||
; bongistan ns does not exist | ||
|
||
; no sci-code for ns: bongistan | ||
|
||
(blubb 13 27) | ||
;; blubb does not exist. | ||
;; Could not resolve symbol: blubb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(ns demo.notebook.clojure-string | ||
(:require | ||
[clojure.string :as str])) | ||
|
||
(str/join ", " ["apple" "banana" "blueberry" "wine"]) | ||
|
||
(str/blank? " ") | ||
(str/blank? " _") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(ns demo.notebook.goog-string | ||
(:require | ||
[goog.string :refer [format]])) | ||
|
||
|
||
(format "hello %s !" "mr X.") | ||
|
||
(format "%.3f" 2.511) | ||
(format "%.2f" 2.511) | ||
(format "%.0f" 2.511) | ||
(format "%d" 134.44) | ||
(format "%s %s %s" 2021 11 13) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{:name "clojure" | ||
; build | ||
:lazy false | ||
:cljs-namespace [goldly.clojure-ns] | ||
:cljs-ns-bindings {'clojure.string goldly.clojure-ns/clojure-string-namespace | ||
;'clojure.edn goldly.clojure-ns/clojure-edn-namespace | ||
'clojure.walk goldly.clojure-ns/clojure-walk-namespace | ||
'goog.object goldly.clojure-ns/goog-object-namespace | ||
'goog.string goldly.clojure-ns/goog-string-namespace}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
(ns goldly.clojure-ns | ||
(:require | ||
[clojure.string] | ||
[clojure.edn] | ||
[clojure.walk] | ||
[goog.object] | ||
[goog.string] | ||
[goog.string.format] | ||
[sci.core :as sci])) | ||
|
||
|
||
|
||
(def clojure-string-namespace | ||
(sci/copy-ns clojure.string (sci/create-ns 'clojure.string nil))) | ||
|
||
(def clojure-edn-namespace | ||
(sci/copy-ns clojure.edn (sci/create-ns 'clojure.edn nil))) | ||
|
||
(def clojure-walk-namespace | ||
(sci/copy-ns clojure.walk (sci/create-ns 'clojure.walk nil))) | ||
|
||
(def goog-object-namespace | ||
(sci/copy-ns goog.object (sci/create-ns 'goog.object nil))) | ||
|
||
(def goog-string-namespace | ||
(sci/copy-ns goog.string (sci/create-ns 'goog.string nil))) | ||
|
||
|
||
|
||
|
||
|
||
|
||
#_'clojure.string #_{'split clojure.string/split | ||
'join clojure.string/join | ||
'escape clojure.string/escape | ||
'blank? clojure.string/blank? | ||
'replace clojure.string/replace | ||
'lower-case clojure.string/lower-case} | ||
|
||
#_'clojure.edn #_{'read-string clojure.edn/read-string | ||
'read clojure.edn/read} | ||
|
||
#_'clojure.walk #_{'postwalk clojure.walk/postwalk | ||
'prewalk clojure.walk/prewalk | ||
'keywordize-keys clojure.walk/keywordize-keys | ||
'walk clojure.walk/walk | ||
'postwalk-replace clojure.walk/postwalk-replace | ||
'prewalk-replace clojure.walk/prewalk-replace | ||
'stringify-keys clojure.walk/stringify-keys} | ||
|
||
#_ 'goog.object #_{'set goog.object/set | ||
'get goog.object/get} | ||
|
||
; 'goog.string {'format goog.string/format} |