View header_order_downloader.py
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 -*- | |
from __future__ import absolute_import, division, unicode_literals | |
import logging | |
from collections import OrderedDict | |
from time import time | |
from urllib.parse import urldefrag | |
from scrapy.core.downloader import Downloader | |
from scrapy.core.downloader.handlers.http11 import HTTP11DownloadHandler, \ |
View simple.py
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
import json | |
import sys | |
from twisted.internet.ssl import DefaultOpenSSLContextFactory | |
from twisted.web import server | |
from twisted.web.resource import Resource | |
from twisted.internet import reactor | |
from twisted.python import log | |
View asyncio_crawler.py
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/local/bin/python3.5 | |
import asyncio | |
from aiohttp import ClientSession | |
class Crawler(object): | |
i = 1 | |
limit = 5 | |
url = "http://localhost:8080/{}" |
View discovery_items_data.py
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 | |
from __future__ import print_function | |
from optparse import OptionParser | |
import sys | |
from collections import OrderedDict | |
import warnings | |
warnings.filterwarnings("ignore") | |
import pandas as pd |
View gist:8917867
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 scrapy.spider import Spider | |
from scrapy.contrib.spiders import CrawlSpider, Rule | |
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
from scrapy.selector import Selector | |
from scrapy.item import Item, Field | |
import urllib | |
class Question(Item): | |
tags = Field() | |
answers = Field() |
View dabblet.css
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
/* almost a bicycle */ | |
#bike { | |
width:400px; | |
height:250px; | |
position:relative; | |
margin:20px 0; | |
-webkit-transition: -webkit-transform 3s linear; | |
} |
View index.html
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
<body> | |
<div> | |
<h3> Conway's Game Of Life</h3> | |
<h4>Click on squares to bring them into life </h4> | |
Choose the size of cells: | |
<div><input type="range" id="setSize" name="setSize" min="5" max="120" step="5"/></div> | |
<div> | |
<input type="button" id="startGame" value="Start Game"/> | |
<input type="button" id="killLife" value="Stop Life"/> | |
<input type="button" id="clearLife" value="Clear Life"/> |
View index.html
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
<canvas id="canvas" width="600" height="600"></canvas> |
View dabblet.css
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
/** | |
* animated sections | |
*/ | |
article { | |
width:1000px; | |
height:600px; | |
} | |
#lover { | |
background:red; |
View dabblet.css
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 first commented line is your dabblet’s title | |
*/ | |
#classer { | |
width:300px; | |
height:300px; | |
margin:auto; | |
} |
NewerOlder