Skip to content

Instantly share code, notes, and snippets.

View wolendranh's full-sized avatar
🍄

Yura Hulpa wolendranh

🍄
View GitHub Profile
max=200
duration=99999999
delay=10
URL=some_url
#####
import ConfigParser
import ast
import os
import logging
from django.core.management import BaseCommand
from models import BannedMails
<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">
<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">
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()))
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):
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):
# -*- coding: utf-8 -*-
from functools import wraps
import time
from math import pi
def type_check(func):
@wraps(func)
def type_wrapper(*args, **kwargs):
pkts=sniff(filter="tcp",
iface=GacheringStatistic.get_primary_eth(self),
timeout=10,
prn=GacheringStatistic.stats_tcp(self,packet),
store=0,
count=0)
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