Skip to content

Instantly share code, notes, and snippets.

@Miroff
Miroff / gist:83b1ae691a8b960004b361f41660f8b0
Created December 28, 2019 10:52
Kothic example for #1
const Kothic = require("./src/kothic");
const { createCanvas, loadImage } = require('canvas')
const canvas = createCanvas(512* 4, 512 *4)
const fs = require('fs');
const newdata = {
"type": "FeatureCollection",
"features": [
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Miroff
Miroff / db_schema.sql
Created May 31, 2019 12:41
Импорт открытых данных РеформаЖКХ в PostgreSQL
--sudo -u postgres psql
--create database apartments;
--create user apartments with encrypted password 'apartments';
--grant all privileges on database apartments to apartments;
CREATE TABLE reestrmkd (
id INTEGER PRIMARY KEY, -- ID дома на Портале
region_id CHAR(36) NOT NULL, -- Субъект РФ (код ФИАС)
area_id CHAR(36) NOT NULL, -- Район (код ФИАС)
city_id CHAR(36) NOT NULL, -- Населенный пункт (код ФИАС)
@Miroff
Miroff / railway.mapcss
Created October 11, 2011 07:01
MapCSS style for railway electrification overlay
/* Main railways without electrified tags */
way[!electrified][railway=rail][!service][!usage] {
color: #000;
width: 5;
}
way[!electrified][railway=rail][!service][usage=branch] {
color: #000;
width: 3;
}