This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cluster | |
import ( | |
"context" | |
"fmt" | |
"reflect" | |
"sort" | |
"time" | |
"testing" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build !ignore_autogenerated | |
/* | |
Copyright 2021 Compose, Zalando SE | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build !ignore_autogenerated | |
/* | |
Copyright 2020 Compose, Zalando SE | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- TIL: Create groups of intersecting lines (split by type) | |
-- first, create some example intersecting and non-intersecting lines | |
WITH lines(id, geom, type) AS ( | |
VALUES (1, 'LINESTRING(1 1,3 1)'::geometry, 'type_A'), | |
(2, 'LINESTRING(2 1,2 2)'::geometry, 'type_A'), | |
(3, 'LINESTRING(3 2,4 2)'::geometry, 'type_A'), | |
(4, 'LINESTRING(3 1,3 2)'::geometry, 'type_B'), | |
(5, 'LINESTRING(3 2,3 3)'::geometry, 'type_B') | |
) | |
SELECT type, ST_AsText( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
from itertools import islice | |
def searchAndAppendImgRef(img_name, img_chunk): | |
# simply search all files in source folder | |
for root, dirs, files in os.walk('/home/flydix/Dokumente/Repo/3dcitydb-docs/source'): | |
for file_name in files: |