- Edit files with the dedicated Edit/Write tools, not shell text tools--no
catheredocs,python,sed,awk, or similar for file modification. The only good reason to shell out is a genuinely multi-file replace (e.g. the same rename across many files); a single-file edit never qualifies.
I have been trying to fix my dad's washing machine for more than a week--it originally got stuck last Thursday with an error message that came on the screen and the door locked (it's a front loading washing machine).
I read up about the error, which is E01 -> F09, which means generally something like "problem in the draining process"--
could be a clog or a busted pump, or apparently even too much soap can cause it.

I managed to break the handle of this drain plug cap because I was using the metal part of the pliers to turn it,
like I saw in some youtube video, and it cracked and started leaking, so I ordered a new piece for that, which came wednesday. Oops!

This file contains hidden or 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
| #!/bin/python3 | |
| import requests | |
| latest_json = requests.get('https://launchermeta.mojang.com/mc/game/version_manifest.json').json().get('versions')[0].get('url') | |
| latest_server_url = requests.get(latest_json).json().get('downloads').get('server').get('url') | |
| print(latest_server_url) |
This file contains hidden or 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
| // merge movies | |
| LOAD CSV WITH HEADERS FROM 'http://data.neo4j.com.s3.amazonaws.com/advanced/movies/new_movies.csv' AS row | |
| with toFloat(row.avgVote) as avgVote, toInteger(row.releaseYear) as releaseYear, split(row.genres, ":") as genres, toInteger(row.movieId) as id, | |
| row.title as title | |
| merge (m:Movie {id:id}) | |
| set m.title = title,m.avgVote = avgVote,m.releaseYear=releaseYear,m.genres = genres | |
| return count(1) | |
| // merge people | |
| LOAD CSV WITH HEADERS FROM 'http://data.neo4j.com.s3.amazonaws.com/advanced/movies/people.csv' as row |
This file contains hidden or 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
| id,name | |
| 1,"Eve" | |
| 2,"Thomas" | |
| 3,"Ryan" |
This file contains hidden or 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
| // get an idea of schema for node properties | |
| match (n) | |
| with n, keys(n) as ks | |
| limit 100000 | |
| unwind ks as k | |
| with n, k | |
| order by k | |
| return distinct labels(n), collect(distinct k) | |
| // query to get actors/directors |
This file contains hidden or 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
| license: gpl-3.0 |
This file contains hidden or 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
| create constraint ON ( movie:Movie ) ASSERT movie.id IS UNIQUE; | |
| create constraint ON ( person:Person ) ASSERT person.id IS UNIQUE; | |
| create index ON :Movie(title); | |
| create index ON :Person(name); | |
| // migrate genres to nodes | |
| match (m:Movie) | |
| unwind m.genres as genre | |
| merge (g:Genre {name:genre}) |
This file contains hidden or 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
| create index on :Movie(movieId); | |
| create index on :Person(personId); | |
| load csv with headers from 'file:///people.csv' as record | |
| merge (p:Person {personId:record.personId}) | |
| set p = record; | |
| load csv with headers from 'file:///movies.csv' as record | |
| merge (m:Movie {movieId:record.movieId}) |
NewerOlder