Skip to content

Instantly share code, notes, and snippets.

View dvska's full-sized avatar

Dmitry / skype: dvska-at-skype dvska

View GitHub Profile
@dvska
dvska / oocsv.py
Created January 30, 2018 15:46
OOcsv: object view of CSV
"""OOcsv: object view of CSV
~5 times faster than OODict
2013 Dmitry V. Selitsky d.v.selitsky@gmail.com / dvska-at-skype
"""
from collections import namedtuple
def OOcsv(csv_file_obj, use_unicodecsv=False, **kwargs):
if use_unicodecsv:
@vsajip
vsajip / websse.py
Created January 23, 2017 17:43 — forked from werediver/websse.py
Simple demonstration of how to implement Server-sent events (SSE) in Python using Bottle micro web-framework. SSE require asynchronous request handling, but it's tricky with WSGI. One way to achieve that is to use gevent library as shown here.
"""
Simple demonstration of how to implement Server-sent events (SSE) in Python
using Bottle micro web-framework.
SSE require asynchronous request handling, but it's tricky with WSGI. One way
to achieve that is to use gevent library as shown here.
Usage: just start the script and open http://localhost:8080/ in your browser.
Based on:
@IngmarBoddington
IngmarBoddington / mysql5
Last active November 18, 2019 18:05
Notes made initially whilst studying for the MySQL 5 Certified Associate Exam (and then expanded)
EXAM DETAILS
Main MySQL Website: http://www.mysql.com/
Certification Webpage: http://education.oracle.com/
Exam Name: MySQL 5 Certified Associate Exam
Exam Number: 1Z0-870
e
=========================================================================================================
EXAM TOPICS
Section 1: Theory, Terminology and Concepts (10%)
Client/Server Concepts