Skip to content

Instantly share code, notes, and snippets.

View gitex's full-sized avatar
🏠
Working from home

Evgeniy Dorovatovskiy gitex

🏠
Working from home
  • R7
  • Kazachstan
  • 15:18 (UTC +05:00)
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtGui
class Widget(QtGui.QDialog):
def __init__(self, parent=None):
QtGui.QDialog.__init__(parent)
@gitex
gitex / mongodb_view.py
Last active May 2, 2016 09:36
My Mongo
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pymongo import MongoClient
import json
client = MongoClient('localhost', 27017)
database = client.mydb['collection_name']
items = list(database.find({}, {'_id': 0}))