- Name: ESLint
- Link name: ESLint Warnings
- Trend report name: Trend report name
([^:]+):(\d+):(\d+): ([^\[\]]+)\[([\w-]+)\/([\w-]+)]
import pytest | |
from django.test import TestCase as django_case | |
class TestFoobarCase(object): | |
@pytest.fixture(scope="class", autouse=True) | |
def prepare_class(self, django_db_setup, django_db_blocker): | |
with django_db_blocker.unblock(): | |
django_case.setUpClass() |
from __future__ import unicode_literals | |
def vigenere_encode(m, k): | |
""" | |
>>> vigenere_encode('A', 'A') | |
'A' | |
>>> vigenere_encode('SUPER SECRET', 'KEY') | |
'CYNOV QOGPOX' | |
>>> vigenere_encode('LOREM IPSUM DOLOR SIT AMET CONSECTETUR ADIPISCING ELIT', 'SECRET') |
import fcntl | |
LOCK_SH = fcntl.LOCK_SH # shared lock | |
LOCK_NB = fcntl.LOCK_NB # non-blocking | |
LOCK_EX = fcntl.LOCK_EX | |
# django helpers | |
def _fd(f): |
%{TIMESTAMP_ISO8601:timestamp;date;yyyy-MM-dd HH:mm:ss,SSS} |
/** | |
* Redux async actions factory | |
* | |
* License: MIT | |
*/ | |
export const asyncActionTypes = (type) => ({ | |
'BASE': `${type}`, | |
'PENDING': `${type}_PENDING`, | |
'SUCCESS': `${type}_SUCCESS`, |
/** | |
* axios adapter based on apisauce | |
* | |
* License: MIT | |
* | |
* https://github.com/axios/axios | |
* https://github.com/infinitered/apisauce | |
* | |
*/ | |
/* eslint-disable no-shadow */ |
class A { | |
def call (c) { | |
c.call() | |
} | |
def foobar (c) { | |
call(c) | |
} | |
} | |
def a = new A() |
@keyframes loading_animation { | |
0% { | |
width: 0; | |
} | |
20% { | |
width: 80%; | |
} | |
100% { | |
width: 90%; | |
} |
from __future__ import absolute_import, unicode_literals | |
import logging | |
from itertools import count | |
from time import sleep | |
from tornado.ioloop import IOLoop | |
from tornado.web import asynchronous, RequestHandler | |
from multiprocessing.pool import ThreadPool |