Clojure CLI tools (with deps.edn) allow for a built in way to create projects.
Official CLI/deps guide: https://clojure.org/guides/deps_and_cli
- Pre-reqs: Clojure and dependencies installed.
Clojure CLI tools (with deps.edn) allow for a built in way to create projects.
Official CLI/deps guide: https://clojure.org/guides/deps_and_cli
| #!/usr/bin/env bb | |
| ;; convert.clj -- babashka edn/json/yaml to edn/json/yaml converter | |
| ;; Author: github.com/KGOH/ | |
| ;; Source: gist.github.com/KGOH/50c0f66022fea2ac173518a143238058 | |
| ;; Version: 2020.4 | |
| ; Usage example: | |
| ; In Emacs: i.imgur.com/TIEDmga.mp4 | |
| ; $ convert.clj edn <<< '{"foo": "bar"}' | |
| ; {:foo "bar"} |
| { | |
| "emojis": [ | |
| {"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
| # if you canno't install bluez-firmware | |
| # | |
| # Add the line below to ```/etc/apt/sources.list``` | |
| # | |
| # deb http://ftp.de.debian.org/debian jessie main non-free | |
| #sudo add-apt-repository ppa:snappy-dev/image | |
| #sudo apt-get update | |
| #sudo apt-get install bluez-firmware |
Here is the looks and feel of your terminal once the tutorial has been applied on your system:
Using Homebrew:
| sudo apt-get install -y build-essential wget gcc g++ texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev libncurses-dev | |
| #Download Emacs 24.5+ source code | |
| wget ftp://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.gz | |
| tar -zxvf emacs-24.5.tar.gz | |
| cd emacs-24.5 | |
| ./configure |
| URL="http://stackoverflow.com/" | |
| # store the whole response with the status at the and | |
| HTTP_RESPONSE=$(curl --silent --write-out "HTTPSTATUS:%{http_code}" -X POST $URL) | |
| # extract the body | |
| HTTP_BODY=$(echo $HTTP_RESPONSE | sed -e 's/HTTPSTATUS\:.*//g') | |
| # extract the status | |
| HTTP_STATUS=$(echo $HTTP_RESPONSE | tr -d '\n' | sed -e 's/.*HTTPSTATUS://') |
| ;; insert test case within project https://github.com/Datomic/day-of-datomic into 'lein repl' | |
| (use '[datomic.api :only [q db] :as d]) | |
| (use 'clojure.pprint) | |
| (def uri "datomic:mem://seattle") | |
| (d/create-database uri) | |
| (def conn (d/connect uri)) | |
| (def schema-tx (read-string (slurp "samples/seattle/seattle-schema.edn"))) |
| # This .travis.yml file instructs travis-ci.org to build your master branch using `yeoman build` | |
| # and deploy the output to your project's gh-pages branch. | |
| # | |
| # You must sign into travis-ci.org and set the commit hook on your project for travis to | |
| # run on your project. You also need to replace the env variables below. The secure: variable | |
| # must be generated by running `travis encrypt` on a github oauth key that you can generate using | |
| # curl. | |
| language: | |
| node_js |