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
virtualenv venv -p python3.6 | |
// Activate the created venv ... | |
pip install ipykernel | |
pip install notebook | |
pip install jupyter_contrib_nbextensions | |
pip install autopep8 | |
pip install yapf | |
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
div#notebook { | |
color: #f8f8f0; | |
font-family: 'Dank Mono' sans-serif; font-style:italic; | |
font-size: 9pt; | |
line-height: 170%; | |
padding-top: 25px !important; | |
zoom: 110%; | |
-webkit-font-smoothing: antialiased !important; | |
} |
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
// This is configuration for VSCode such that the `go to definitions` work for the current project. | |
// Side Note: The PYTHONPATH for the current project was set. | |
{ | |
"python.formatting.provider": "autopep8", | |
"python.linting.enabled": true, | |
"python.pythonPath": "<VENV_PATH>\\Scripts\\python.exe", | |
"python.languageServer": "Microsoft" | |
} |
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
{ | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "session", | |
"style": "diamond", | |
"foreground": "#ffffff", |
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
org.hibernate.Session session = entityManager.unwrap(org.hibernate.Session.class); | |
org.hibernate.query.Query<?> query = session.createQuery(criteriaQuery); | |
SharedSessionContractImplementor sessionImplementor = entityManager.unwrap(SharedSessionContractImplementor.class); | |
String sql = sessionImplementor.getFactory() | |
.getQueryPlanCache() | |
.getHQLQueryPlan(query.getQueryString(), false, Collections.emptyMap()) | |
.getSqlStrings()[0]; |
OlderNewer