##MONGODB & PYTHON
###Ubuntu Install
sudo apt-get install mongodb
pip install pymongo
Table - Collection
Column - Property
Row - Document
##MONGODB & PYTHON
###Ubuntu Install
sudo apt-get install mongodb
pip install pymongo
Table - Collection
Column - Property
Row - Document
This example pulls together various examples of work with trees in D3.js.
The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.
One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.
Dragging can be performed on any node other than root (flare). Dropping can be done on any node.
Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.
import functools | |
import os | |
import socket | |
import time | |
import pyuv | |
def on_connection(message, handle, loop): |
#################################### | |
# echo.py | |
#################################### | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals, division | |
Hello and thanks for being a part of my presentation. Below is a list of links that are pertinent to the presentation on May 14th, 2014 at Open Source Days in beautiful Warsaw, Poland.
Feel free to take a look at these links before, during, or after my presentation.
If you would like to contact me at any time to talk about this presentation or others I have given, you can find me at the following places:
import gevent | |
from gevent import monkey;monkey.patch_all() | |
import socket | |
def handle_client(csock): | |
while True: | |
data = csock.recv(1024) | |
csock.sendall(data) | |
csock.close() |
A response to Preetam Jinka's nice little Go demo.
Similar basic HTTP server using Gevent/Python
from gevent import pywsgi
import md5
def md5_body(environ, start_response):
md5Hash = md5.new()
#!/usr/bin/env python | |
from base64 import b64decode | |
from flask import Flask, current_app | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_presst import PresstApi, ModelResource | |
from flask_presst.principal import PrincipalResource | |
from flask.ext.principal import UserNeed, RoleNeed |
''' | |
Simple LocustIO testing script with basic auth | |
''' | |
import random, gzip, StringIO, threading, urllib2, re, getpass | |
from locust import HttpLocust, TaskSet, task, web | |
from random import randint | |
from urlparse import urlparse | |
#resource.setrlimit(resource.RLIMIT_NOFILE, (999999, 999999)) | |
USER_AGENTS = [ |
# -*- coding: utf-8 -*- | |
import asyncio | |
import uvloop | |
from aiohttp.web import Application, MsgType, WebSocketResponse | |
def add_socket(app, socket, user_id): | |
if user_id in app['connections']: | |
pass |