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
package ys | |
import groovy.util.logging.Slf4j | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.context.annotation.PropertySource | |
import org.springframework.test.context.ContextConfiguration | |
import org.springframework.transaction.UnexpectedRollbackException | |
import org.springframework.transaction.annotation.Propagation |
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
package ys | |
import groovy.util.logging.Slf4j | |
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.scheduling.annotation.* | |
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler | |
import org.springframework.test.context.ContextConfiguration |
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 pytest | |
class A(object): | |
F='FA' | |
f1 = lambda: 'f1' | |
f2 = lambda self: 'f2' | |
def f3(self): | |
return 'f3' | |
f4 = staticmethod(lambda: 'f4') | |
f5 = classmethod(lambda cls: 'f5') |
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 StringIO import StringIO | |
from datetime import timedelta | |
from rx import Observer | |
from rx.concurrency import TwistedScheduler | |
from rx.disposables import Disposable | |
from rx.subjects import Subject | |
from twisted.internet.protocol import Factory, Protocol, connectionDone | |
from twisted.internet.endpoints import TCP4ServerEndpoint |
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
/*jslint unparam: true, browser: true, indent: 2 */ | |
;(function ($, window, document, undefined) { | |
'use strict'; | |
Foundation.libs.reveal = { | |
name : 'reveal', | |
version : '4.3.2', |
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 | |
# Author: Yaroslav Stavnichiy | |
def verify_account_id(acct): | |
if not isinstance(acct, (str, unicode)): | |
return False | |
try: | |
E=[int(c) for c in acct] | |
except: |
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 {padding:20px;} |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>Welcome to Foundation</title> |