Pizza + Privacy: Eat a Slice, Protect Your Rights Online
Drexel University
February 5, 2015
6:00 - 7:30PM
Mike Tigas slides: download here
Further resources & stuff mentioned in the slides
from itertools import imap | |
from collections import namedtuple | |
from django.db.models.query import QuerySet, ValuesQuerySet | |
class NamedTuplesQuerySet(ValuesQuerySet): | |
def iterator(self): | |
# Purge any extra columns that haven't been explicitly asked for | |
extra_names = self.query.extra_select.keys() |
#!/usr/bin/env python | |
#-*- coding:utf8 -*- | |
from datetime import datetime | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, Integer, Date | |
from sqlalchemy.dialects.mysql import TIMESTAMP | |
from sqlalchemy.types import TypeDecorator |
# -*- coding: utf-8 -*- | |
from django.contrib.auth.decorators import login_required | |
from django.utils.cache import patch_response_headers | |
from django.utils.decorators import method_decorator | |
from django.views.decorators.cache import cache_page, never_cache | |
from django.views.decorators.csrf import csrf_exempt | |
class NeverCacheMixin(object): | |
@method_decorator(never_cache) |
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
1. pip install -r reqs.pip | |
2. server.py | |
3. open client.html in browser | |
4. redis-cli publish push '123456' | |
5. check browser console |
#include <limits.h> | |
#include <pthread.h> | |
#include <stdlib.h> | |
typedef struct _queue_t queue_t; | |
typedef struct _queue_node_t queue_node_t; | |
struct _queue_node_t |
Pizza + Privacy: Eat a Slice, Protect Your Rights Online
Drexel University
February 5, 2015
6:00 - 7:30PM
Mike Tigas slides: download here
Further resources & stuff mentioned in the slides