Skip to content

Instantly share code, notes, and snippets.

Omar Khashoggi OmarWKH

Block or report user

Report or block OmarWKH

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@OmarWKH
OmarWKH / app.py
Created Mar 19, 2017
flask/neo4j prototype
View app.py
'''
Creates an event with 2 choices and 2 ends and serves them at http://127.0.0.1:5000/event/1
Works with a running server of neo4j.com, a graph DB that uses Cypher query language
Based on: https://nicolewhite.github.io/neo4j-flask/
(some of the py2neo code is out of date, I replaced it with the new API)
(this mentions virtualenv, but in python 3 just use venv)
Packages:
flask
@OmarWKH
OmarWKH / pyv.bat
Created Feb 11, 2017
Change py's python version for current cmd instance
View pyv.bat
:: changes python versoin invoked by 'py' for current cmd instance
:: https://docs.python.org/using/windows.html#customizing-default-python-versions
:: my set up:
:: installed python 3 and added it to environment variables
:: installed python 2 to another folder without adding it
:: added this script to my environment variables
:: now I use python 3 by default, and when I need to use 2 I type 'pyv' (you can change the name)
:: usage:
You can’t perform that action at this time.