Coder Social home page Coder Social logo

clojure-lab's Introduction

Welcome to Clojure!

This repository is designed to be a set of interactive learning materials introducing Clojure. The materials are suitable for use either individually or in group settings. The content is delivered using Gorilla REPL, which combines text information with embedded REPLs (interactive Clojure code editors).

The content in this course was developed by Cognitect for Clojure training events held at both conferences and corporate settings. This particular version of the materials was first used in the Clojure/West 2015 Intro to Clojure 2-day course.

Table of contents:

  • Syntax
  • Functions
  • Ordered collections
  • Unordered collections
  • Flow control
  • Namespaces
  • Sequences
  • Polymorphism
  • State

Run from repository

This is the normal way to interact with these materials.

Prerequisites

  1. Clone this repo
git clone [email protected]:cognitect/clojure-lab.git
cd clojure-lab
  1. Start the gorilla repl server
lein gorilla :port 55555
  1. Open the lab page in your web browser

Start

Creating a standalone package

If you are teaching a course this may be useful to create a standalone package for distribution to students.

  1. Create the uberjar:
rm target
lein uberjar
  1. Compress the directory into a zip (this may vary per platform):
cd ..
zip -r clojure-lab clojure-lab/images clojure-lab/src clojure-lab/target/*-standalone.jar

Running the standalone package

If you are taking a course with a standalone package, this method can be used to run the materials.

  1. Unzip the zip file
unzip clojure-lab.zip
cd clojure-lab
  1. Start the server
java -jar target/clojure-lab-0.1.0-SNAPSHOT-standalone.jar
  1. View the page in your browser

Start

Contributions

This repository is free for all to use in learning Clojure. You are welcome to use it for any non-commercial use - free public workshops, internal company workshops, etc.

Contributions to this repository are welcome via pull request! However, we would like to retain copyright by Cognitect for these materials. Thus, we request that you complete the following online agreement to assign copyright to Cognitect before any contribution can be accepted:

Cognitect Contributor Agreement

If you have any questions, please contact [email protected].

Copyright

Copyright © 2015 Cognitect

Creative Commons License
Clojure Lab by Cognitect is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

clojure-lab's People

Contributors

k4y3ff avatar puredanger 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.