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
(ns utils.re-frame | |
(:require [cljs.compiler :as cljsc])) | |
(defn- anonymous-function-declaration? [form] | |
(and (list? form) | |
(= 'fn (first form)) | |
(vector? (second form)))) | |
(defn- query-id->js-fn-name [query-id] | |
(let [ns-part (when-let [ns-part (namespace query-id)] |
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
// | |
// Generate diagram legend | |
// | |
// 2020 David GERARD | |
// | |
// For a selected view, create a group named 'Legend', in which will be nested for each concepts type found in view | |
// - a concept, specifically sized to show the pictogram | |
// - a note, to be used to name or explain the concept specifically in the view, hence preventing to rename the concept | |
// That way, | |
// - a model will be a bit polluted but with a specific set of concepts, for legend purpose, prefixed so easily identifiable |
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
(ns analyze.core | |
(:require [clj-kondo.core :as clj-kondo] | |
[clojure.set :as set])) | |
;; checks re-frame's :<- syntax | |
;; to mark dependency subscriptions as used | |
(def analyze-reg-sub | |
"(require '[clj-kondo.hooks-api :as api]) | |
(fn [{node :node}] | |
(let [[_ kw & children] (:children node) |
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
/**************************************** | |
* Step by Step JArchi script examples * | |
* v0.1 * | |
* Francois Coudeville * | |
* May 2021 #jArchi * | |
* #Beginner #Guide #Tutorial #Example * | |
****************************************/ | |
//--------- | |
// 1 Utils |
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
/* | |
* AutoDescribe a view and add to view documentation | |
*/ | |
function CallApi(url,api_key, query) { | |
var imports = new JavaImporter(java.net, java.util, java.lang, java.io, java.nio.charset) | |
var result="" |
OlderNewer