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 google.appengine.api import apiproxy_stub, apiproxy_stub_map, urlfetch | |
from google.appengine.ext import testbed | |
import unittest | |
class FetchServiceMock(apiproxy_stub.APIProxyStub): | |
""" | |
Example:: | |
with FetchServiceMock(content='A MOCKERY', status_code=200) as fetch_mock: | |
ret = main.method('amok') |
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 google.appengine.api import apiproxy_stub | |
from google.appengine.api import apiproxy_stub_map | |
class FetchServiceMock(apiproxy_stub.APIProxyStub): | |
def __init__(self, service_name='urlfetch'): | |
super(FetchServiceMock, self).__init__(service_name) | |
def set_return_values(self, **kwargs): | |
self.return_values = 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
#!/bin/sh | |
# Enumerate all interrupts used by either the default or a specified | |
# network interface, and map them to separate CPUs. Each CPU that gets | |
# assigned interrupts will also have its C-states deeper than C1 | |
# disabled to reduce the probability of rx queue overflow. | |
# | |
# TODO: NUMA interrupt scheduling. | |
# |
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
#!/bin/sh | |
# Enumerate all interrupts used by either the default or a specified | |
# network interface, and map them to separate CPUs. Each CPU that gets | |
# assigned interrupts will also have its C-states deeper than C1 | |
# disabled to reduce the probability of rx queue overflow. | |
# | |
# TODO: NUMA interrupt scheduling. | |
# |
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
android.os. | |
API level Build.VERSION_CODES Version Code name | |
1 BASE 1.0 (no code name) | |
2 BASE_1_1 1.1 (no code name) | |
3, NDK 1 CUPCAKE 1.5 Cupcake | |
4, NDK 2 DONUT 1.6 Donut | |
5 ECLAIR 2.0 Eclair | |
6 ECLAIR_0_1 2.0.1 Eclair | |
7, NDK 3 ECLAIR_MR1 2.1 Eclair | |
8, NDK 4 FROYO 2.2.x Froyo |