GithubHelp home page GithubHelp logo

cljs-roman's Introduction

cljs-roman

A simple client side app to convert decimal to Roman numerals written in clojurescript

Screenshot

The actual functions that convert to and from Roman Numerals are exercises I did as part of the 4Clojure puzzles below. As such I didn't spend much time making the code readable or worrying too much about whether it's a perfect implementation of converting numbers. The main goal of this project was to identify a problem small enough to do in a few hours to get started with Clojurescript development.

Read Roman Numerals

Write Roman Numerals

See the source code main.cljs for some links that helped me out getting started with Clojurescript.

How this app was made

Having installed Leiningen I created a new project with 'lein new roman'

I then edited the project.clj to add the dependencies I needed and especially to set up lein-cljsbuild which enables you to build cljs code easily.

The html is in roman.html and the javascript is compiled into the javascripts folder from the Clojurescript in the src/cljs folder.

I had a terminal with the comman 'lein cljsbuild auto' running, so that any changes to the cljs files are compiled to javascript.

License

Copyright © 2013 Justin Heyes-Jones

Distributed under the Eclipse Public License, the same as Clojure.

cljs-roman's People

Contributors

justinhj avatar

Watchers

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