Skip to content

Instantly share code, notes, and snippets.

View omidekz's full-sized avatar
:octocat:

omid omidekz

:octocat:
View GitHub Profile
@omidekz
omidekz / PrintMap.java
Last active February 15, 2019 08:37
print map of SharifAI2019
private static final String OBJECTIVEZONE_SHAPE = "# ",
OPP_RESPAWNZONE_SHAPE = "+' ",
MY_RESPAWNZONE_SHAPE = "+ ",
WALL_SHAPE = "/\\ ",
NORMAL_CELL = "-- ";
static void printMap(World world) {
Cell[][] cells = world.getMap().getCells();
System.out.print(" ");
for (int i = 0; i < world.getMap().getColumnNum(); i++) {
String str = String.valueOf(i);
@sirodoht
sirodoht / migrate-django.md
Last active April 16, 2024 17:51
How to migrate Django from SQLite to PostgreSQL

How to migrate Django from SQLite to PostgreSQL

Dump existing data:

python3 manage.py dumpdata > datadump.json

Change settings.py to Postgres backend.

Make sure you can connect on PostgreSQL. Then: