This file contains hidden or 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 om-tutorial.core | |
| (:require | |
| [goog.dom :as gdom] | |
| [om.next :as om :refer-macros [defui]] | |
| [om.dom :as dom])) | |
| ;; Problem: | |
| ;; the search input reader (:search/result) will get called 2 times with each query update. | |
This file contains hidden or 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
| (defmulti read om/dispatch) | |
| (defmethod read :input-handler | |
| [{:keys [query state]} k {:keys [query]}] | |
| (println "read: input-handler") | |
| (let [st @state] | |
| {:value {:input-handler (clojure.string/join [query "+X"]) }})) | |
| (defui SomeInput |
This file contains hidden or 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 scheduler.devcards.omnexttest | |
| (:require | |
| [devcards.core] | |
| [om.next :as om :refer-macros [defui ui]] | |
| [om.dom :as dom :include-macros true]) | |
| (:require-macros | |
| [devcards.core :as dc :refer [defcard defcard-doc defcard-om-next noframe-doc deftest dom-node]])) | |
| (defcard-doc | |
| "## Navigation with Toggle |
This file contains hidden or 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
| ;; i used the new-js->clj3 function from Darrick Wiebe | |
| ;; https://gist.github.com/pangloss/591d77231fda460c2fbe | |
| ;; i have added a :ns parameter | |
| (let [data | |
| "[{ \"web-app\": { \"servlet\": [ { \"servlet-name\": \"cofaxCDS\", \"servlet-class\": \"org.cofax.cds.CDSServlet\", \"init-param\": { \"configGlossary:installationAt\": \"Philadelphia, PA\", \"configGlossary:adminEmail\": \"[email protected]\", \"configGlossary:poweredBy\": \"Cofax\", \"configGlossary:poweredByIcon\": \"/images/cofax.gif\", \"configGlossary:staticPath\": \"/content/static\", \"templateProcessorClass\": \"org.cofax.WysiwygTemplate\", \"templateLoaderClass\": \"org.cofax.FilesTemplateLoader\", \"templatePath\": \"templates\" } }, { \"servlet-name\": \"cofaxAdmin\", \"servlet-class\": \"org.cofax.cds.AdminServlet\" }, { \"servlet-name\": \"cofaxTools\", \"servlet-class\": \"org.cofax.cms.CofaxToolsServlet\", \"init-param\": { \"templatePath\": \"toolstemplates/\", \"log\": 1, \"logLocation\": \"/usr/local/tomcat/logs/CofaxTools.log\", \"lo |
This file contains hidden or 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
| My Awesome Sketch | |
| First State | |
| some event -> Second State | |
| Second State |
This file contains hidden or 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
| # Style Buttons: A Parallel State Demo | |
| # 2018 August 06 | |
| # By Ryan Lucas (Twitter: @ryanlucas) | |
| Font Style Selector& | |
| Bold | |
| Bold Off | |
| bold clicked -> Bold On | |
| Bold On | |
| bold clicked -> Bold Off |
This file contains hidden or 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
| import { Signal, signal } from '@angular/core'; | |
| import { Event } from '@flowcards/core'; | |
| export function getSignal<P, V>(event: Event<P, V>) { | |
| const eventSignal = signal<Event<P, V>>(event); | |
| event.registerCallback(() => { | |
| eventSignal.set(this._internalEvent); | |
| }); | |
| return eventSignal.asReadonly; | |
| } |
This file contains hidden or 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
| --- | |
| description: Protocol for defining new features, tasks, and sub-tasks. Guides through creating/updating task list files, structuring tasks, handling dependencies, and outlining implementation plans. Includes a visual workflow. | |
| alwaysApply: false | |
| --- | |
| # Protocol: Feature & Task Definition | |
| When a user initiates the creation or addition of new features, tasks, or | |
| sub-tasks, follow this protocol. This ensures comprehensive definition and | |
| proper integration into project task lists. |
This file contains hidden or 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
| --- | |
| description: Protocol for executing tasks from a task list, updating their status, documenting decisions, marking relevant files, and suggesting solution design refinements. Includes a visual workflow. | |
| alwaysApply: false | |
| --- | |
| # Protocol: Task Execution & Update | |
| When a user indicates they are working on or have completed a task from a project task list, follow this protocol. This ensures tasks are properly updated, and relevant information is captured. | |
| ## Workflow Overview |
This file contains hidden or 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
| # Protocol: Integrated EPCC Workflow (with Task List Management) | |
| When a user presents a significant problem, a new feature request, or a complex task, guide them and yourself (the AI) through the following integrated EPCC workflow. This workflow combines high-level strategic planning (EPCC) with detailed task management using established protocols. | |
| ## Integrated EPCC Workflow Visualized | |
| ```mermaid | |
| graph TD | |
| A[Start: User Problem/Feature Request] --> B{EXPLORE Phase}; | |
| B -- "User provides context" --> B1["AI: Read Context (NO code)"]; |