typeddict_test 1.759s 372 Kb
schematics_test 2.0 3.188s 152 Kb
schematics_test 1.1 3.339s 96 Kb
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 | |
import threading | |
import time | |
import random | |
import string | |
from django.db import connection | |
from multiprocessing import Pool | |
from django.core.management.base import BaseCommand |
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
// go test -run none -bench . | |
package b | |
import ( | |
"math/rand" | |
"sort" | |
"testing" | |
) | |
const M = 8192 |
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
from PIL import Image | |
from PIL import ImageDraw | |
from math import tanh | |
import random | |
Size = 512 | |
im = Image.new("RGB", (Size, Size), "#fff") | |
draw = ImageDraw.Draw(im) |
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
"""find geohashes inside polygon""" | |
from __future__ import division | |
__base32 = '0123456789bcdefghjkmnpqrstuvwxyz' | |
precision = 8 | |
geohash_corners_inside_polygon_policy = any # or all | |
def geohash(lon, lat): | |
result_str = [] |
OlderNewer