Skip to content

Instantly share code, notes, and snippets.

View alejandrohdo's full-sized avatar

Alejandro Hurtado Chacñama alejandrohdo

View GitHub Profile
alejandrohdo /
Created September 12, 2021 02:36 — forked from heyalexej/
list of pytz time zones
>>> import pytz
>>> for tz in pytz.all_timezones:
... print tz
alejandrohdo /
Created August 8, 2021 05:39 — forked from Attila03/
Django bulk insert with Foreign Key
from stocks import wsgi
from django.core.exceptions import ObjectDoesNotExist
from api.models import Stock, Company
import csv
csvpath = r'prices.csv'
batch_size = 500
t1 = time.time()
alejandrohdo /
Created August 27, 2019 00:51 — forked from samkit5495/
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