I hereby claim:
- I am pquentin on github.
- I am quentinp (https://keybase.io/quentinp) on keybase.
- I have a public key ASBWiaCHqgBFxL_zX0rogjwaZjym4igjjUQsFMCKBWDajgo
To claim this, I am signing this object:
PUT employees | |
{ | |
"mappings": { | |
"properties": { | |
"avg_worked_seconds": { | |
"type": "long" | |
}, | |
"birth_date": { | |
"type": "date" | |
}, |
import trio | |
class SyncBackend: | |
def return_2(self): | |
return 2 | |
class AsyncBackend: | |
async def return_2(self): |
import time | |
import trio | |
from trio_websocket import open_websocket_url | |
async def send_one_message(i): | |
try: | |
async with open_websocket_url("ws://127.0.0.1:8000/foo") as ws: | |
await ws.send_message(f"hello, {i}!") |
import trio | |
async def producer(): | |
for e in [1, 2, 3]: | |
yield e | |
async def consumer(iterator): | |
total = 0 |
#!/usr/bin/env python3 | |
import asyncio | |
import time | |
import aiohttp | |
START = time.monotonic() | |
import difflib | |
import glob | |
import os | |
import sys | |
from tokenize import tokenize as std_tokenize | |
from tokenize import ASYNC, AWAIT, NAME | |
import click | |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
rm -rf hostname | |
wget \ | |
-e robots=off \ | |
--recursive --level=inf \ | |
--no-verbose \ | |
--page-requisites \ | |
--convert-links \ |
"use strict"; | |
let fs = require('fs'), | |
_ = require('underscore'); | |
function match_stuff(regexp, data, cb) { | |
let match; | |
while ((match = regexp.exec(data)) !== null) { | |
cb(match[1]); | |
} |
#!/usr/bin/env python3 | |
from glob import glob | |
import re | |
import json | |
def get_code_strings(): | |
for filename in glob("views/*.jade"): | |
content = open(filename).read() |