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
<div id="toc-static"></div> | |
**TOC** | |
<div id="toc-wrapper"> | |
<div class="header">Contents <a href="#" class="hide-btn">[hide]</a></div> | |
<div id="toc"></div> | |
</div> |
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
# https://github.com/ipython/ipython/issues/1527/ | |
import sys, time | |
try: | |
import IPython | |
clear_output = IPython.core.display.clear_output | |
except: | |
IPython = None | |
class ProgressBar: |
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
#!/bin/bash | |
echo $0: Creating virtual environment | |
virtualenv_name = ${1:-<myenv>} | |
virtualenv --prompt="$virtualenv_name" ./env | |
mkdir ./logs | |
mkdir ./pids | |
mkdir ./db | |
mkdir ./static_content | |
mkdir ./static_content/media |
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
Config { | |
font = "xft:DejaVu Sans Mono:size=10:bold:antialias=true" | |
, bgColor = "#balck" | |
, fgColor = "grey" | |
, border = NoBorder | |
, borderColor = "black" | |
, lowerOnStart = True | |
-- , position = Static { xpos = 1280, ypos = 0, width = 230, height = 20 } | |
, position = TopW R 15 | |
, commands = [ |
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
zip = (pairs) -> | |
dict = {} | |
dict[key] = value for [key, value] in pairs | |
dict | |
# Example | |
zip ([el, el * el] for el in [4..8]) # {4:16, 5:25, 6:36, 7:49, 8:64} |
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 lxml import html | |
class User(object): | |
def __init__(self, username): | |
self.username = username | |
def achievements(self): | |
try: | |
page = html.parse(user_achievements_url %{'username':self.username}) | |
except IOError: |
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
#!/usr/bin/python | |
""" | |
Original post: http://thenextweb.com/shareables/2016/01/31/frustrated-comcast-customer-sets-up-bot-to-tweet-complaints-every-time-internet-speed-drops/ | |
""" | |
import os | |
import sys | |
import csv | |
import datetime | |
import time | |
import twitter |
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 aiotg import Bot, aiohttp | |
from utils import html_decode | |
bot = Bot(api_token="***") | |
advice_api_url = "http://fucking-great-advice.ru/api/{}" | |
sound_url = 'http://fucking-great-advice.ru/files/sounds/{}' # sound_9.MP3 | |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Simple async crawler/callback queue based on gevent.""" | |
import traceback | |
import logging | |
import httplib2 | |
import gevent |
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
Общие сведения о нейронных сетях. | |
Строение нейронных сетей. | |
Описание основных функций активации. | |
Архитектура однослойных НС. | |
Архитектура многослойных НС. | |
Правило обучения Хебба. | |
Правило обучения Розенблатта. | |
Правило обучения Уидроу-Хоффа. | |
Многослойный персептрон. | |
Алгоритм обратного распространения ошибки. |
OlderNewer