Skip to content

Instantly share code, notes, and snippets.

def make_pool(settings, InnerPool):
conn = mongomock.Connection()
db = conn.db["partyPool"]
return db
def mock_get_user(user_id):
from data import user
return user
{
"_id" : "144466671082296759844952",
"is_listed" : true,
"is_catalog" : false,
"subtitle" : null,
"marketing_facilitator" : 1,
"promotional_video_asset_id" : null,
"show_outline" : true,
"topics" : [ ],
"plan_type" : "retail",
@dusual
dusual / dist_sys_meetup_delhi.md
Last active May 7, 2019 09:23
Distributed Systems meetup group Delhi

Objective

We intend to bring a distributed systems meetup group to Delhi. We are inspired by @nishantmodak and @ShripadAgashe who have been running the meetups and conferences in Pune. Please, go through their previous meetups at @dist_sys. We want to be the space where people can talk about the various problems they have been solving around distributed systems and hopefully try and bring more academicians to talk about the theoretical principles behind building reliable and consistent systems on top the entropy that usually comes with distributed systems.

Looking for

We are looking for all kinds of people who can help us get going with the group. Speakers, potential attendees, sponsors, volunteers etc ..

- name: Set default project name (deployment_name)
set_fact:
project: "{{ project | combine({'name': '{{ project.site }}_{{ project.organization }}' } ) }}"
- name: echo something
debug:
msg: "{{ project }}"
{
"_id": "5e9539ba32812260855d84de",
"type": "form",
"tags": [
"common"
],
"owner": "5e8a3d7bf1f3d54924170187",
"components": [
{
"autofocus": false,