Skip to content

Instantly share code, notes, and snippets.

###########################
# Configuration
###########################
# set Ctrl-a as the default prefix key combination
set -g prefix C-a
# use 256 term for pretty colors
set -g default-terminal "screen-256color"

Hello,

My name is Jason Young and I am contacting you regarding an event that I am co-organising and was wondering if you would be interested in covering.

The event is DjangoCon Europe 2015, the largest Django conferences in the world, which will be hosted in Cardiff this year (31st May - 5th June). Django is an open source web application framework written entirely in Python, another open source programming language. 350 attendees from around the world are set to participate in 5 days of talks, workshops and coding sprints.

The full list of speakers and talks can be found here: http://2015.djangocon.eu/talks/

Subject: Your DjangoCon Workshop proposal

Hello ,

Firstly, I would like to apologise for how long we took to get back to you. We received so many workshop proposals that the scheduling took longer than we expected

I am delighted to inform you that your workshop has been accepted for DjangoCon Europe. We have been able to allocate you a slot.

Subject: Your DjangoCon Workshop proposal

Hello ,

I am delighted to inform you that your workshop has been accepted for DjangoCon Europe. We have been able to allocate you a slot.

We’ll also need a black and white photograph for the website.

dtree = DecisionTreeClassifier(max_depth = 4)
dtree.fit(data_data, data_target)
scores = cross_validation.cross_val_score(dtree, data_data, data_target, cv=10)
print scores
print dtree.score(data_data, data_target)
from StringIO import StringIO
from inspect import getmembers
out = StringIO()
out = tree.export_graphviz(dtree, feature_names=names_of_attributes, out_file='tree_data.dot')
#Running from command line
To run python from the command line in windows, it must be added to the PATH environment variable.
Depending on the version of windows, finding the PATH variable is slightly different.
Windows 8
Click on Control Panel > System > Advanced
Click on Environment Variables, under System Variables, find PATH, and click on it, then click the edit button.
Windows 7

#Installing Python

The installer is available at python.org. Simply download and run the file.

#Running from command line

To run python from the command line in windows, it must be added to the PATH environment variable. A comprehensive guide to finding the PATH variable on different versions of windows can be found at https://www.java.com/en/download/help/path.xml Add the scripts directory from the Python directory to the PATH variable by adding

Hi Jess,

The event has been moved to 31st May - 5th June. Everything is back on track and proceeding smoothly. For future updates keep an eye on the official site: http://2015.djangocon.eu/. We would also like to mention that we aren't angry at One Direction and in fact welcome any fans to drop in for the open day on the 31st!

Jason

import random
class Prisoner():
def __init__(self, choice, years, strategy):
self.choice = choice
self.years = 0
self.strategy = []
self.switch = False
def optimist(self, Player, Oponent):