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
# -*- 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, \ |
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 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 | |
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/local/bin/python3.5 | |
import asyncio | |
from aiohttp import ClientSession | |
class Crawler(object): | |
i = 1 | |
limit = 5 | |
url = "http://localhost:8080/{}" |
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/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 |
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
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() |
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
/* almost a bicycle */ | |
#bike { | |
width:400px; | |
height:250px; | |
position:relative; | |
margin:20px 0; | |
-webkit-transition: -webkit-transform 3s linear; | |
} |
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
<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"/> |
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
<canvas id="canvas" width="600" height="600"></canvas> |
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
/** | |
* animated sections | |
*/ | |
article { | |
width:1000px; | |
height:600px; | |
} | |
#lover { | |
background:red; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
#classer { | |
width:300px; | |
height:300px; | |
margin:auto; | |
} |
NewerOlder