A dataset of the locations of toy shops around Switzerland.
Last update: 3.12.2023
[Unit] | |
Description=Kiosk | |
PartOf=graphical-session.target | |
After=graphical-session.target | |
[Service] | |
Environment=DISPLAY=:0.0 | |
Environment=XAUTHORITY=/home/pi/.Xauthority | |
ExecStart=/bin/bash /home/pi/kiosk.sh | |
Restart=always |
A Hack:Org:X project. See https://hackorgx.dribdat.cc/project/12
Identify your internal stakeholders and set expectations. Hackathons are cross-functional. No hackathon is run by a community person alone. It is important to ensure everyone is aligned on the goals, what is required to achieve them, and that the necessary resources are committed.
-- Hackathon Guide (opensource.com)
library(frictionless) # https://docs.ropensci.org/frictionless/ | |
library(readr) # https://readr.tidyverse.org/reference/problems.html | |
# Read contents of a Data Package | |
package_local <- read_package("velozuerich/datapackage.json") | |
resources(package_local) | |
resource_local = read_resource(package_local, "velonetz-csv") | |
# Preview the first few rows | |
head(resource_local) |
library('ckanr') | |
# Initialise the CKAN library with a remote portal | |
ckanr_setup(url = "https://opendata.swiss") | |
# Run a search to get some data packages | |
x <- package_search(q = 'video games', rows = 1) | |
# Note that on the Swiss server the titles are multilingual | |
x$results[[1]]$title$en |
#!/usr/bin/python | |
from xml.dom import minidom | |
import csv, os, re, string, subprocess | |
from argparse import ArgumentParser | |
import tempfile | |
# Create a SVG file with nodes having at least one of: | |
# name_black | |
# name_white |
import pendulum | |
import argparse | |
import csv | |
parser = argparse.ArgumentParser(description='Aggregate time series data') | |
parser.add_argument('filename', type=str, | |
help='a CSV file to process') | |
parser.add_argument('--column', type=str, default='time', | |
help='in which column is the datetime (default: time)') |
Data safety on the Road
(A humble manifesto for better hackathons)
Journalists, freelancers, designers, everyday citizens - Demand more security in our digital life! Doubly so for people who are involved in critical investigation: all those, whose digital rights and identities may for various reasons be threatened.
version: '3.4' | |
# On first run: | |
# docker-compose exec dribdat ./release.sh | |
# (TODO: move to entrypoint script) | |
services: | |
dribdat: | |
image: loleg/dribdat:stable | |
build: | |
context: . | |
dockerfile: ./Dockerfile |
// A function that helps plot various GeoJSON to the canvas. This does not | |
// cover every type and use case, but may be a useful reference. | |
// See also: https://mappa.js.org/ | |
function drawGeoJson(json_data, palette='white') { | |
// Iterate every feature | |
json_data.features.forEach((feature, ix) => { | |
// Make sure that we have a properly formatted file | |
if (typeof feature.geometry !== 'object' || |