- Where to buy appliances and furniture from? Argos, IKEA
- How to find the right flat?
Cell phone providers
#!/usr/bin/env python | |
import requests | |
from bs4 import BeautifulSoup | |
def make_soup(url): | |
r = requests.get(url) | |
soup = BeautifulSoup(r.content, 'lxml') | |
return soup |
def getQueryResultPerformance(results, topic_num): | |
i = 0 | |
rels_found = 0 | |
for r in results: | |
i += 1 | |
if qrels.get_value(topic_num, r.docid) > 0: | |
rels_found += 1 | |
# rels_found = sum(qrels.get_value(topic_num, r.docid) > 0 for r in results) | |
# return [rels_found, len(results)] |
<p> | |
KITENGELA, Kenya _ On a clear day, Agnes Patita can see the | |
tourists in vans inching along dirt roads, searching the plains for | |
antelope, zebra, giraffe and, if they are lucky, an elusive pride | |
of lions. | |
</p><p> | |
But the majestic cats the tourists pay to see are dangerous | |
pests to Mrs. Patita. Lions have killed more than 20 cattle here in | |
the last two months. On a recent night, two lions broke into the |
Environment: | |
Request Method: GET | |
Request URL: http://ede1a05.ngrok.com/treconomics/391485/ | |
Django Version: 1.7 | |
Python Version: 2.7.10 | |
Installed Applications: | |
('django.contrib.auth', |
/*! Copyright (c) 2015 WhatsApp Inc. All Rights Reserved. */ | |
webpackJsonp([84], [, function(e, t, r) { | |
"use strict"; | |
function n() { | |
return u[Math.round(Math.random() * (u.length - 1))] | |
} | |
function o() { | |
this.logs = [], this.localCursor = 0, this.pending = void 0, this.timer = new d(this, this.persistIdb) |
import requests | |
mickey_ch_id = 'UCyHQxCUs1ENbnj36FjesG7Q' | |
marc_ch_id = 'UCzhG6dIYhenVoRVgcdUexLQ' | |
stoyan_ch_id = 'stoyanjr' | |
base_url = 'https://www.googleapis.com/youtube/v3/' | |
path = 'subscriptions?part=id&channelId=UCyHQxCUs1ENbnj36FjesG7Q&fields=items%2Fid&key=' | |
full_path = '{0}{1}{2}'.format(base_url, path, API_KEY) |
import itertools | |
# Conway's Really Simple Game of Life based on "Stop Writing Classes" PyCon 2012 | |
def neighbors(point): | |
x,y = point | |
yield x + 1, y | |
yield x - 1, y | |
yield x, y + 1 | |
yield x, y - 1 |
Python 3 hrs 18 mins βββββββββββββββββββββ 60.3% | |
Git 30 mins βββββββββββββββββββββ 9.2% | |
YAML 26 mins βββββββββββββββββββββ 8.0% | |
Markdown 21 mins βββββββββββββββββββββ 6.6% | |
Text 15 mins βββββββββββββββββββββ 4.9% |