Skip to content

Instantly share code, notes, and snippets.

View 1602's full-sized avatar
🏠
Working from home

Anatolii 1602

🏠
Working from home
  • co-founder at ubio
  • Leigh-on-Sea, Essex, UK
View GitHub Profile
@1602
1602 / keep-walking-privacy-policy.md
Created May 21, 2021 14:13
Keep Walking Privacy Policy

Keep Walking Privacy Policy

Introduction

Thank you for using my app! This document is the main privacy policy for Keep Walking mobile application. I respects your privacy rights and care about protecting your information collected by my apps.

What is collected

The Keep Walking app does not collect Personally Identifiable Information. The Keep Walking app collects information about its user location.

@1602
1602 / Main.elm
Last active August 19, 2019 19:38
json-schema.org parser
port module Main exposing (..)
import Json.Decode as Decode exposing (Decoder, maybe, string, bool, succeed, (:=))
import Json.Decode.Extra as DecodeExtra exposing ((|:), withDefault, lazy)
import Json.Encode as Encode exposing (Value)
import Http
import Html exposing (div, span, button, text, form, input, ul, li)
import Html.App exposing (program)
import Html.Events exposing (onClick, onSubmit, onInput)
import Html.Attributes as Attrs exposing (style)
@1602
1602 / css2elm.js
Created October 25, 2016 15:26
Snippet to convert css string to inline elm
const css2elm = css =>
'[ "' +
css
.replace(/: /g, '" => "')
.replace(/; /g, '"\n, "')
.replace(/;$/, '"\n]');
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl