The goal of this exercise is to extract information about the Berlin metro system from Wikidata and to analyze its relationships with Neo4j.
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
page { | |
--td-brand-color: #EA609E; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
<title>专注力训练:数数</title> | |
<style type="text/css"> | |
h1{border-bottom: 1px solid #cccccc;} | |
div#options{margin:0 0 1em 0;background: #efefef; padding: .3em;text-align: center;} |
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 python | |
# -*- coding: utf-8 -*- | |
""" | |
@author: zhuxl | |
""" | |
import os | |
import re | |
import csv |
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
#------------ bootstrap the cluster nodes -------------------- | |
redis_image='redis:5' | |
network_name='host' # must be in host mode | |
#---------- create the cluster ------------------------ | |
for port in `seq 6379 6384`; do \ | |
start_cmd="redis-server --port $port --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes" | |
docker run -d --name "redis-"$port -p $port:6379 --net $network_name $redis_image $start_cmd; |
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
{"sig":"eccca68f69ef8a88f3fa02319163a7fb5b07445436da80bd4889a58ce8d913307551ff641578186ea46367ea4eedb1852b594029d175b891c0f2b49d57cf3af81","msghash":"85b33d53d100354f8b1c9d587f5cef58eee18f2b2483c9e65a5dad0e470c3e91"} |
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
Option Explicit | |
Sub AddProgressBar() | |
On Error Resume Next | |
With ActivePresentation | |
For X = 1 To .Slides.Count | |
.Slides(X).Shapes("PB").Delete | |
Set s = .Slides(X).Shapes.AddShape(msoShapeRectangle, _ |
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
Option Explicit | |
Sub RemoveWatermarks() | |
'image watermark values | |
Dim imgWidth As Double, imgHeight As Double, delta As Double | |
imgWidth = 100.12 | |
imgHeight = 100.12 | |
delta = 0.1 |
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
/// <summary> | |
/// See https://developers.google.com/maps/documentation/utilities/polylinealgorithm | |
/// </summary> | |
public static class GooglePoints | |
{ | |
/// <summary> | |
/// Decode google style polyline coordinates. | |
/// </summary> | |
/// <param name="encodedPoints"></param> | |
/// <returns></returns> |
NewerOlder