- lxml
- pyhwp
hwp5html.xsl
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <Windows.h> | |
typedef struct { | |
void (*handler)(char *); | |
char parameter[128]; | |
int interval, last_emitted; | |
} Event; |
public class Matrix { | |
private double[][] data = null; | |
private int rows = 0, cols = 0; | |
public Matrix(int rows, int cols) { | |
data = new double[rows][cols]; | |
this.rows = rows; | |
this.cols = cols; | |
} |
import inspect | |
from itertools import islice | |
class MethodList(list): | |
pass | |
class OverloadingClassDict(dict): | |
def __setitem__(self, name, value): | |
if callable(value) and name in self: | |
old_value = self[name] |
This gist consists of 4 files:
throttler.py - Throttler class implementation
asyncio_throttling_example.py - Throttling general coroutines
aiohttp_throttling_example_client.py - Throttling aiohttp requests
aiohttp_throttling_example_server.py - Web server for testing aiohttp_throttling_example_client.py
This article describes how to deploy a JSP website using Docker, Apache Tomcat.
I found a way to make a minimal JSP web application from scratch, without any IDE. (ref: https://www.youtube.com/watch?v=JEBR_KJdzSk)
First, organize your working directory like this:
from collections import defaultdict | |
def is_private_name(name): | |
return not name.startswith('__') and name.startswith('_') | |
class InstanceProxy: | |
def __init__(self, instance, privates): | |
self._instance = instance | |
self._privates = privates |
import urllib3 | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) |
import sys | |
import pygame | |
from pygame.locals import * | |
SCREEN_WIDTH, SCREEN_HEIGHT = 640, 480 | |
pygame.init() | |
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) |
table_structure = [ | |
[('A', 3, 1), ('B', 1, 2), ('C', 3, 1)], | |
[('D', 1, 1), ('E', 2, 1)], | |
[('F', 2, 1)], | |
[('G', 1, 2), ('H', 1, 2)], | |
] | |
total_cols = sum(x[2] for x in table_structure[0]) | |
table = [[None]*total_cols for _ in range(len(table_structure))] |