The current python version will be the version used in your new virtual enviornment
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 bash | |
# backup a couple of files into time machine backups | |
# main purpose it to make it easier to reinstall gentoo with similar setup | |
# run under mwest crontab | |
set -euf -o pipefail | |
# I don't want to leave /mnt/share mounted as it prevents hibernation of UTM | |
# So mount it if it is not mounted, and unmount it at the end if it wasn't mounted | |
declare IS_MOUNTED |
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 bash | |
# | |
# The nice cmake parallel compile system that simh offers fails | |
# on console only linux systems that do not have X11 / SDL / MESA graphical libraries | |
# as some sims require them. Perhaps there is some configuration for this. | |
# For now I am just compiling the couple of sims that I use single threaded. | |
# If this gets slow and/or annoying then look at cmake again. | |
set -euf -o pipefail | |
declare -rx GIT_DIR="${HOME}/repos/simh/.git" |
but not often, so I forget
Most common commands are covered in atlassian's gitflow documentation and this medium post
git docs
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
val start_dttm = Timestamp.valueOf("2019-01-01 00:00:00") | |
val inlineDf = (1 to 4).map { i => ((new Timestamp(start_dttm.getTime() + 60000 * i) , i)) }.toDF("eventTime","eventValue") | |
display(inlineDf) |
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
//console | |
//setup | |
//hide | |
Initialize Graph | |
[source,cypher] | |
---- | |
CREATE | |
( socrates:Philosopher {name:'Socrates', uri: 'http://dbpedia.org/resource/Socrates' }) | |
, ( plato:Philosopher {name:'Plato', uri: 'http://dbpedia.org/resource/Plato' }) |
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
= graphGist generated from spock test Neo4jCypherOneRelationship.groovy | |
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist] | |
Generated on Mon Jul 29 07:11:04 PDT 2013 | |
//console | |
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
= graphGist generated from spock test Neo4jCypherErasAndSchools.groovy | |
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist] | |
Generated on Sun Jul 28 08:03:43 PDT 2013 | |
//console | |
Initialize Graph |
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
= graphGist generated from spock test Neo4jCypherOneNode.groovy | |
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist] | |
Generated on Sun Jul 28 08:03:44 PDT 2013 | |
//console | |
query to create one node with one property |
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
= graphGist generated from spock test Neo4jCypherOneLabel.groovy | |
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist] | |
Generated on Sun Jul 28 08:03:43 PDT 2013 | |
//console | |
query to create plato with philosopher label |
NewerOlder