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
max=200 | |
duration=99999999 | |
delay=10 | |
URL=some_url | |
##### |
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 ConfigParser | |
import ast | |
import os | |
import logging | |
from django.core.management import BaseCommand | |
from models import BannedMails | |
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
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.2.4.js" integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI=" crossorigin="anonymous"></script> | |
</head> | |
<body> | |
<form id="simple-form"> | |
<input type="text" name="answer" value="insert your value here"> | |
<p><input type="submit"></p> | |
</form> | |
<script type="text/javascript"> |
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 xmlns="http://www.w3.org/1999/html"> | |
<ul class="nav nav-tabs"> | |
<li class="active"><a data-toggle="tab" href="#home">Home</a></li> | |
<li><a data-toggle="tab" href="{% url "cert" %}">Menu 1</a></li> | |
<li><a data-toggle="tab" href="#menu2">Menu 2</a></li> | |
</ul> | |
<div class="tab-content"> | |
<div id="home" class="tab-pane fade in active"> | |
<div class="container"> |
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
class Observable(): | |
def __init__(self, **kwargs): | |
self.__dict__ = kwargs | |
def __repr__(self): | |
return '{}({})'.format(self.__class__.__name__, | |
', '.join(':'.join(map(str, x)) | |
for x in self.__dict__.items())) |
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 unittest import TestCase | |
class ListCheckTestCase(TestCase): | |
def setUp(self): | |
self.bad_lst = ['itsppyura', 'itsppoleg', 'dev'] | |
self.right_lst = ['itsppyura', 'itsppoleg'] | |
def test_contain_string_pass(self): |
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 unittest import TestCase | |
class ListCheckTestCase(TestCase): | |
def setUp(self): | |
self.bad_lst = ['itsppyura', 'itsppoleg', 'dev'] | |
self.right_lst = ['itsppyura', 'itsppoleg'] | |
def test_contain_string_pass(self): |
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 functools import wraps | |
import time | |
from math import pi | |
def type_check(func): | |
@wraps(func) | |
def type_wrapper(*args, **kwargs): |
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
pkts=sniff(filter="tcp", | |
iface=GacheringStatistic.get_primary_eth(self), | |
timeout=10, | |
prn=GacheringStatistic.stats_tcp(self,packet), | |
store=0, | |
count=0) |
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
class TestVisible(object): | |
def test_1(self): | |
self.name = 1 | |
print self.name | |
def test_2(self): | |
self.name = self.name + 1 | |
print self.name |
NewerOlder