Skip to content

Instantly share code, notes, and snippets.

View alejandrohdo's full-sized avatar
👽
fun

Alejandro Hurtado Chacñama alejandrohdo

👽
fun
View GitHub Profile
@categulario
categulario / primos_una_linea.py
Created May 23, 2012 00:04
Lista de números primos del 1 al 100 en python (una sola línea)
#Lista de numeros primos entre 1 y 100 en una sola linea
c = [i for i in xrange(2,101) if (i%2!=0 or i==2) and (i%3!=0 or i==3) and (i%5!=0 or i==5) and (i%7!=0 or i==7)]
print c
@samkit5495
samkit5495 / createContact.py
Last active March 15, 2024 14:37
Code to create a contact using Google's People API
from __future__ import print_function
import httplib2
import os
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage