Get-ChildItem *.html | ForEach-Object {
$html = Get-Content -Raw $_
$items = $html | Select-String '(?smi)\n {32}(<div class="item.*?)\n {32}</div>' -allmatches | % Matches | % {$_.Groups[1].Value}
$items | % {
$num = $_ -match '.*<div class="num">(\d*)</div>.*' ? $Matches[1] : $null
$href,$title = $_ -match '.*<div class="nameRus"><a href="(.*?)">(.*?)<.*' ? $Matches[1,2] : $null
$titleEn = $_ -match '.*<div class="nameEng">(.*?)<.*' ? $Matches[1] : $null
$date = $_ -match '.*<div class="date">(.*?)<.*' ? $Matches[1] : $null
$objs = irm https://dataverse.pushdom.ru/api/access/datafile/4099?format=original | ConvertFrom-Csv
$cypher = @'
UNWIND $objs as obj
MERGE (p:Person {
name: obj.author_std
})
MERGE (e:Edition {
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
function Convert-PersonToQuery ([pscustomobject]$Person, [switch]$PreciseDate = $false) { | |
$properties = @() | |
$birthDates = @()+$person.birthdate+$person.birthdates | ? {$_} | % {[string]$_} | |
foreach ($bd in $birthDates) { | |
if ($bd.length -eq 10 -and $PreciseDate) { | |
$properties += @{pid = 'P569'; v = $bd}; | |
} else { | |
$properties += @{pid = 'P569@year'; v = $bd.substring(0,4)}; | |
} |
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 myapp; | |
import java.util.HashSet; | |
import java.util.Set; | |
import org.neo4j.graphdb.Node; | |
import org.neo4j.graphdb.Relationship; | |
import org.neo4j.procedure.Description; | |
import org.neo4j.procedure.Name; | |
import org.neo4j.procedure.UserAggregationFunction; |
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 myapp; | |
import java.io.IOException; | |
import java.nio.file.Path; | |
import java.util.List; | |
import java.util.Map; | |
import org.neo4j.configuration.connectors.BoltConnector; | |
import org.neo4j.configuration.helpers.SocketAddress; | |
import org.neo4j.dbms.api.DatabaseManagementServiceBuilder; |
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 myapp; | |
import java.io.IOException; | |
import java.nio.file.Path; | |
import java.util.List; | |
import java.util.Map; | |
import org.neo4j.configuration.GraphDatabaseSettings; | |
import org.neo4j.configuration.GraphDatabaseSettings.LogQueryLevel; | |
import org.neo4j.configuration.connectors.BoltConnector; |
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 myapp; | |
import java.io.File; | |
import java.time.Duration; | |
import java.time.LocalDate; | |
import org.neo4j.configuration.GraphDatabaseSettings; | |
import org.neo4j.configuration.connectors.BoltConnector; | |
import org.neo4j.cypherdsl.core.renderer.Configuration; | |
import org.neo4j.cypherdsl.core.renderer.Dialect; |
- Install Ubuntu alongside Windows:
- Enable sounds: https://askubuntu.com/a/1391367
- Maybe you will need to install alsa-tools or something like that.
- Enable hide/expand by click in
dconf editor
- Disable mouse acceleration in
Gnome Tweaks
- Read PDF:
sudo apt-get install zathura
- Change bg,fg colors: https://askubuntu.com/a/619793