This file contains 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
PREVPWD=`pwd` | |
PREVENV_PATH= | |
PREV_PS1= | |
PREV_PATH= | |
handle_virtualenv(){ | |
if [ "$PWD" != "$PREVPWD" ]; then | |
PREVPWD="$PWD"; | |
if [ -n "$PREVENV_PATH" ]; then | |
if [ "`echo "$PWD" | grep -c $PREVENV_PATH`" = "0" ]; then |
This file contains 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
from math import factorial | |
for n in range(150, 955): | |
fact = factorial(n) | |
print 'len=', len(str(fact)) | |
sum = 0 | |
for s in str(fact): | |
sum += int(s) | |
print 'sum=', sum |
This file contains 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 get_avatars(backend, details, response, user=None, is_new=False, | |
*args, **kwargs): | |
"""Update user details using data from provider.""" | |
if user is None: | |
return | |
changed = False # flag to track changes | |
try: | |
url = None | |
if backend.name == 'facebook' and "id" in response: | |
url = "http://graph.facebook.com/%s/picture?type=large" \ |
This file contains 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
# coding: utf-8 | |
import signal | |
import time | |
import socket | |
import requests | |
import lxml.html | |
from urlparse import urlparse |
This file contains 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
(function() { google.elements.keyboard.loadme({id:"ru",title:"Русская клавиатура",mappings:{sl:{"":'ё!"№;%:?*()_+йцукенгшщзхъ/фывапролджэячсмитьбю,'},l:{"":"Ё1234567890-=ЙЦУКЕНГШЩЗХЪ\\ФЫВАПРОЛДЖЭЯЧСМИТЬБЮ."}, | |
s:{"":'Ё!"№;%:?*()_+ЙЦУКЕНГШЩЗХЪ/ФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,'},"":{"":"ё1234567890-=йцукенгшщзхъ\\фывапролджэячсмитьбю."},sc:{"À=":"Ѣ+","QWERTOPÛÝÜ":"ЇѸѪѬѤЅѮ{}|", | |
"ASJKL;":"ѲѰѠѾѺѼ",ZXBNM:"ѦѨІѴѶ"},cl:{"À=":"Ѣ+","QWERTOPÛÝÜ":"ЇѸѪѬѤЅѮ[]\\","ASJKL;":"ѲѰѠѾѺѼ",ZXBNM:"ѦѨІѴѶ"},c:{"À=":"ѣ=","QWERTYUIOPÛÝÜ":"їѹѫѭѥңүөѕѯ[]\\","ASJKL;":"ѳѱѡѿѻѽ",ZXBNM:"ѧѩіѵѷ"},scl:{"À=":"ѣ=", | |
"QWERTYUIOPÛÝÜ":"їѹѫѭѥңүөѕѯ{}|","ASJKL;":"ѳѱѡѿѻѽ",ZXBNM:"ѧѩіѵѷ"}}}); })() |
This file contains 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
XHR finished loading: GET "http://127.0.0.1:9990/api/lessondivisions?lesson=39" | |
grid.js:336 ["new", 3] | |
grid.js:345 end | |
grid.js:336 ["vry first", 5] | |
grid.js:345 end | |
grid.js:336 ["seecond", 6] | |
grid.js:345 end | |
grid.js:336 ["seecond", 7] | |
grid.js:345 end | |
grid.js:336 ["aaaa111", 8] |
This file has been truncated, but you can view the full file.
This file contains 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
THE FOUNDATION TRILOGY | |
ISAAC ASIMOV | |
Contents | |
Introduction | |
Foundation |
This file has been truncated, but you can view the full file.
This file contains 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
THE FOUNDATION TRILOGY | |
ISAAC ASIMOV | |
Contents | |
Introduction | |
Foundation |
This file contains 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
SIC = { | |
"01": "Crop and animal production, hunting and related service activities", | |
"02": "Forestry and logging", | |
"03": "Fishing and aquaculture", | |
"05": "Mining of coal and lignite", | |
"06": "Extraction of crude petroleum and natural gas", | |
"07": "Mining of metal ores", | |
"08": "Other mining and quarrying", | |
"09": "Mining support service activities", | |
"10": "Manufacture of food products", |
This file contains 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
/*! | |
* Azure Storage SDK for JavaScript - Blob, 10.3.0 | |
* Copyright (c) Microsoft and contributors. All rights reserved. | |
*/ | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | |
typeof define === 'function' && define.amd ? define(['exports'], factory) : | |
(factory((global.azblob = {}))); | |
}(this, (function (exports) { 'use strict'; |
OlderNewer