Skip to content

Instantly share code, notes, and snippets.

Quentin Pradet pquentin

Block or report user

Report or block pquentin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pquentin
pquentin / fanout.py
Created May 25, 2018
Fanning out a generator with trio
View fanout.py
import trio
async def producer():
for e in [1, 2, 3]:
yield e
async def consumer(iterator):
total = 0
@pquentin
pquentin / ratelimiter.py
Last active Oct 28, 2019
How do you rate limit calls with aiohttp?
View ratelimiter.py
#!/usr/bin/env python3
import asyncio
import time
import aiohttp
START = time.monotonic()
View asyncbleach.py
import difflib
import glob
import os
import sys
from tokenize import tokenize as std_tokenize
from tokenize import ASYNC, AWAIT, NAME
import click
View keybase.md

Keybase proof

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:

@pquentin
pquentin / gist:1474f29440ac560f6c33
Created Sep 15, 2014
Crawl a Dokuwiki user page and suppages
View gist:1474f29440ac560f6c33
#!/bin/bash
rm -rf hostname
wget \
-e robots=off \
--recursive --level=inf \
--no-verbose \
--page-requisites \
--convert-links \
@pquentin
pquentin / unusedstrings.js
Created Aug 28, 2014
First draft of unusedstrings.py in JS
View unusedstrings.js
"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]);
}
@pquentin
pquentin / unusedstrings.py
Created Aug 25, 2014
Compare codefirefox localization file with __ calls in the code
View unusedstrings.py
#!/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()
@pquentin
pquentin / keybase.md
Created May 18, 2014
keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am pquentin on github.
  • I am quentinp (https://keybase.io/quentinp) on keybase.
  • I have a public key whose fingerprint is 11DC 7800 7D7E AADE 88D2 D9EE 73E4 671C 64FC 0B3A

To claim this, I am signing this object:

View gist:45f0df222eb3180a718d

Super article, merci. Mes réactions sont un poil trop longues pour un tweet.

Quelques détails :

  1. Il manquerait l'intérêt du refocus/bokeh
  2. "Pour Nokia, les limitations sont toujours présentes" est évident vu que rien n'a changé, du coup on se demande si tu veux dire que Google a les mêmes limitations, mais ce n'est manifestement pas le cas vu la suite de l'article.
  3. "il est nécessaire de discriminer le mouvement de l'appareil et le mouvement des objets dans la scène" -> cette information aurait-elle sa place dans la description de "la calibration, la rectification et l'appariement" ? Je pose la question parce que l'article compare Nokia et Google, mais on veut savoir si certaines limitations existent aussi dans Lytro.

Au niveau des points positifs, j'aime beaucoup la description des trois phases de l'estimation des positions 3D, les rappels clairs et concis, et les limites des différents algorithmes. Merci !

You can’t perform that action at this time.