- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! 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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Samsung Galaxy S3-i9300 (International) bootloop
CWM-based Recovery v6.0.5.1
The device boots into the lock-screen and then reboots in about 3 seconds.
Here are some of my sources http://tab.bz/mgj0x
Data partition corruption Messed up partitions on internal storage