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 socket | |
import mock | |
@mock.mock(socket) | |
def gethostname(): | |
return 10 | |
@gethostname |
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
#include <iostream> | |
#include <boost/function.hpp> | |
class Test | |
{ | |
public: | |
explicit Test(const int x): v(x) | |
{} |
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 scala.io | |
import scala.xml | |
import scala.xml.parsing | |
import scala.xml.parsing.NoBindingFactoryAdapter | |
import nu.validator.htmlparser | |
import org.xml.sax | |
/// HTML からノードに変換 |
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
----------------- | |
ext.cpp | |
----------------- | |
#include <iostream> | |
#include "ext.h" | |
// 実態 | |
int x = 10; | |
int main(int argc, char* args[]) |
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 -*- | |
# setup.py for pypy repository | |
import setuptools | |
import os | |
version = '1.5.0' | |
root = os.path.dirname(__file__) |
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
[buildout] | |
parts = env entry ipython sphinx nose pylint | |
modname = mymodule | |
develop = | |
. | |
[env] | |
recipe = zc.recipe.egg |
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 traceback | |
source = ''' | |
def self(): | |
def test(): | |
assert False | |
test() |
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 Request() | |
{ | |
} | |
class Response() | |
{ | |
} | |
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 -*- | |
try: | |
import threading | |
except ImportError: | |
import dummy_threading as threading | |
LOCK_OBJECT = threading.RLock() |