Skip to content

Instantly share code, notes, and snippets.

@vharmain
vharmain / loi-schema.json
Last active April 7, 2024 15:25
Lipas Location of Interest schema
{
"anyOf" : [ {
"title" : "Vaaranpaikka",
"description" : "water-conditions > hazard",
"type" : "object",
"properties" : {
"id" : {
"type" : "string"
},
"event-date" : {
@vharmain
vharmain / utl-activities-schema-csv
Last active March 4, 2024 18:21
UTP - LIPAS activities schema CSV
Aktiviteetti nimi fi,Aktiviteetti nimi se,aktiviteetti nimi en,Aktiviteetti kuvaus fi,Aktiviteetti kuvaus se,Aktiviteetti kuvaus en,Aktiviteetti tekninen nimi,LIPAS tyyppikoodit,Ominaisuus tekninen nimi,Ominaisuus tyyppi,Ominaisuus nimi fi,Ominaisuus nimi se,Ominaisuus nimi en,Ominaisuus kuvaus fi,Ominaisuus kuvaus se,Ominaisuus kuvaus en
Retkeily ja ulkoilualueet,,,,,,outdoor-recreation-areas,110 102 106 104 108 109 111 103 107 112,arrival,textarea,Saapuminen,,,Autolla ja joukkoliikenteellä saapumiseen liittyvää tietoa,,
Retkeily ja ulkoilualueet,,,,,,outdoor-recreation-areas,110 102 106 104 108 109 111 103 107 112,accessibility,textarea,Esteettömyys,,,Yleistä tietoa kohteen esteettömyydestä,,
Retkeily ja ulkoilualueet,,,,,,outdoor-recreation-areas,110 102 106 104 108 109 111 103 107 112,contacts,contacts,Yhteystiedot,,,Tähän joku seliteteksti,,
Retkeily ja ulkoilualueet,,,,,,outdoor-recreation-areas,110 102 106 104 108 109 111 103 107 112,images,images,Valokuvat,,,,,
Retkeily ja ulkoilualueet,,,,,,outdoor-r
@vharmain
vharmain / utp-schema.json
Last active March 4, 2024 18:21
LIPAS - UTP aktiviteetit json-skeema
{
"type" : "object",
"properties" : {
"outdoor-recreation-areas" : {
"type" : "object",
"properties" : {
"additional-info-link" : {
"type" : "string"
},
"arrival" : {
@vharmain
vharmain / core.cljs
Last active May 23, 2023 19:09
Reitit re-frame example
(ns frontend-re-frame.core
(:require
[re-frame.core :as re-frame]
[reagent.core :as reagent]
[reitit.core :as r]
[reitit.coercion :as rc]
[reitit.coercion.spec :as rss]
[reitit.frontend :as rf]
[reitit.frontend.controllers :as rfc]
[reitit.frontend.easy :as rfe]))

Lumo - A simple example how to get started

  1. download lumo, add it to PATH and make it executable (on a Mac as simple as brew install lumo but I think you can also use npm install -g lumo to achieve the same thing)
  2. mkdir my-project && cd my-project
  3. npm install request request-promise
  4. touch core.cljs
  5. use your favourite editor to edit core.cljs
(ns my-project.core)
@vharmain
vharmain / README.md
Last active March 13, 2018 13:19
Dockerized ClojureScript development environment

How it works

- '.:/usr/src/app' (under base) will mount your project dir . into the container(s) path /usr/src/app. This way both your host machine and container(s) see the same files and any changes will persist on your host machine after container has terminated. Additionally there’s a separate volume for Maven cache, which you want to share between your containers (otherwise maven downloads dependencies each time you execute lein commands). Volume(s) defined at the bottom will ‘survive’ until they’re explicitly deleted.

Usage

  • docker-compose run lein <args> executes any lein tasks. Example: docker-compose run lein clean
  • docker-compose up figwheel fires up figwheel which will be accessible from host on port 3449. (ctrl-c will quit). You need to use up instead of run because run doesn’t allocate port mappings and therefore you’d never be able to access index.html from your host machines browser.
  • docker-compose run shell starts a bash session in container, for exploring and fu