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
# Install typer and arrow to use this | |
from dataclasses import dataclass | |
from datetime import datetime | |
from decimal import Decimal | |
import csv | |
import arrow | |
from typing import Sequence, Dict |
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
task wrapper(type: Wrapper) { | |
// Note: Android Studio ignores this line (probably a bug) | |
jarFile "$projectDir/../gradle/wrapper/gradle-wrapper.jar" | |
doLast { | |
"rm ./gradlew.bat".execute() | |
} | |
} |
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 |
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
<!DOCTYPE html> | |
<html><head> | |
<title>#112 in Rust Playground</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="web.css"> | |
<body> | |
<main> | |
<div id="editor" ></div> |