Skip to content

Instantly share code, notes, and snippets.

@OmarWKH
OmarWKH / ArabGameDevCommunities.md
Last active October 6, 2022 17:05
list of (some) arab game development communities
@OmarWKH
OmarWKH / app.py
Created March 19, 2017 02:05
flask/neo4j prototype
'''
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 February 11, 2017 23:14
Change py's python version for current cmd instance
:: 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: