1. PyngFM: Python implementation of Ping.fm API

    Thu 02 April 2009 | in Python

    ping.fm{.alignright .size-full .wp-image-257 width="99" height="97"}I've just released PyngFM, a Python implementation of Ping.fm API. Ping.fm is a simple service that allow you to update multiple social networks (Facebook, Twitter, Jaiku ecc...) with a single post. You can find complete source code and documentation on the official website: http://code.google.com/p/pyngfm/

    Please contact me if you have any suggestion or if you find any bug in the code, so I'll be able to fix it.

    read more

    comments

  2. Il crivello di Eratostene

    Questo codice Python di esempio, genera una lista di numeri primi che vanno da 2 fino al numero passato come parametro.

    [sourcecode language='python']
    def eratostene(x):
    primi = range(3, x + 1, 2)
    for i in primi:
    if(pow(i, 2) > x):
    break
    for j in primi:
    if(i != j) and (j % i == 0):
    primi.remove(j)
    primi.insert(0, 2)
    return primi
    [/sourcecode]

    read more

    comments

« Page 2 / 2

social