Giter VIP home page Giter VIP logo

clerk-clojure's Introduction

What is this?

This is a repository will familiarise you with basics of Clojure. This repository uses Uses Clerk to show up as notebook.

Where to see this stuff?

https://sindhubb.github.io/clerk-clojure/

How to run this to contribute?

  1. Install dependencies with lein deps
  2. Ensure you have Calva installed on your VSCode
  3. Start Calva Leiningen project REPL
  4. Add this to this repository's .vscode into settings.json:
{
    "calva.jackInEnv": {
    },
    "calva.customREPLCommandSnippets": [
        {
            "name": "Open in Clerk",
            "key": "d",
            "snippet": "(require '[nextjournal.clerk :refer [show!]]) (show! \"$file\")"
        },
        {
            "name": "Start Clerk",
            "key": "s",
            "snippet": "(require '[nextjournal.clerk :refer [serve!]])  (serve! {:port <PORT> :watch-paths [\"src/<name_of_dir>\"]})"
        }
    ],
}

Remember to:

  1. change <name_of_dir> to actual folder name within src

  2. replace with your desired port.

  3. Press these keys:

control + option + space   - starts custom calva commands
  s -> start clerk
  d -> open current file in clerk
  1. Browse http://localhost:<PORT> to see the live notebook

How to get HTML?

Run lein make-docs and you should see html files generated under src/<name-of-dir>

How to view HTML?

You can open ./docs/index.html in any browser and browse as you normally would. You can also serve these HTML files with lein ring server-headless <PORT>

clerk-clojure's People

Contributors

sindhubb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.