Skip to content

Instantly share code, notes, and snippets.

Jiří Chadima JirkaChadima

Block or report user

Report or block JirkaChadima

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JirkaChadima / hotel-org.json
Last active Jul 2, 2019
Onboarding demo hacktravel Lisbon 2019
View hotel-org.json
"updatedAt": "2019-07-01T08:12:35.584Z",
"dataFormatVersion": "0.2.3",
"legalEntity": {
"name": "Onboarding demo hotel",
"contacts": {
"general": {
"email": "",
"phone": "+40213191564",
"url": ""
View legal-entity-hotel-api.json
JirkaChadima / ISO-639-1-language.json
Last active Feb 21, 2019 — forked from jrnk/ISO-639-1-language.json
ISO 639-1 Alpha-2 codes of languages JSON
View ISO-639-1-language.json
"code": "ab",
"name": "Abkhaz"
"code": "aa",
"name": "Afar"
JirkaChadima / index.html
Last active Jul 1, 2019
Simple sample booking page for Winding Tree
View index.html
<html lang="en">
<meta charset="utf-8">
<title>Winding Tree simple sample booking page</title>
<link rel="stylesheet" href="" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<body class="container">
<div id="error" class="alert"></div>
<div id="hotel-description">
<h1 id="hotel-name"></h1>
View index.js
const WTLibs = require('@windingtree/wt-js-libs');
const SwarmAdapter = require('@windingtree/off-chain-adapter-swarm');
const HttpAdapter = require('@windingtree/off-chain-adapter-http');
const libs = WTLibs.createInstance({
dataModelOptions: {
provider: '',
offChainDataOptions: {
adapters: {
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// java code
protected boolean isInside(Point p, Polygon polygon) {
if (polygon == null) {
return false;
JirkaChadima /
Last active Jan 30, 2018
cz-region-boundaries snippets
# GPS data passed through
curl -X POST '' -d@overpass-query.txt | osmtogeojson > src.geojson
# utility script from
node prepare-gps-data.js
# ZIP codes processing
#, collected from
JirkaChadima /
Last active Jun 30, 2017
from eventlet.hubs import trampoline
def start_listening(queue):
"""Connects to PgSQL and listens to notifications, inspired by"""
if not queue:
connection = psycopg2.connect(DSN)
cursor = connection.cursor()
cursor.execute("LISTEN field_value_change")
JirkaChadima /
Created Jun 27, 2017
import select
import psycopg2
import psycopg2.extensions
conn = psycopg2.connect(DSN)
curs = conn.cursor()
cursor.execute("LISTEN field_value_change")
You can’t perform that action at this time.