I hereby claim:
- I am josernestodavila on github.
- I am josernestodavila (https://keybase.io/josernestodavila) on keybase.
- I have a public key ASCQFFJLleCL8p5Cun-FLhkCfzrDhwoQml-DzTJFuxNeyQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| valores = (500, 200, 100, 50, 20, 10, 5, 1, 0.5, 0.25, 0.1, 0.05, 0.01) | |
| x = float(raw_input("Introduzca una cantidad a desglozar: ")) | |
| desglozar = x | |
| resultados = dict() |
| gpsbabel -t -i garmin -f usb: -o gpx -F tracklog.gpx | |
| gpsPhoto --gpsfile tracklog.gpx --overwrite-geotagged --timeoffset 25200 --maxtimediff 7200 --dir /photos/ |
| def email_to_csv(self, widget, data=None): | |
| """ email_to_csv - Exports the e-mail registered in this month to a csv file""" | |
| # FIXME: Agregar un FileChooserDialog para elegir donde guardar el archivo csv | |
| results = self.database.execute_view("asistencia_mensual", "pizzabashlog") | |
| f = open("emails.csv","w") | |
| for result in results[[date.today().month]]: | |
| # FIXME: Buscar una mejor manera de forzar el salto de línea en el archivo | |
| f.writelines(result.value['email'] + '\n') | |
| # set to yes if you want Conky to be forked in the background | |
| background no | |
| cpu_avg_samples 2 | |
| net_avg_samples 2 | |
| out_to_console no | |
| # X font when Xft is disabled, you can pick one with program xfontsel | |
| #font 7x12 |
| #/usb/bin/python2.4 | |
| # | |
| # | |
| import cairo | |
| import CairoPlot | |
| import psycopg2 | |
| import sys | |
| try: |
| SELECT MAX( T.Cantidad ) , T.civicrm_contribution_source | |
| FROM ( | |
| SELECT COUNT( * ) AS Cantidad, civicrm_contribution.source AS civicrm_contribution_source | |
| FROM civicrm_contact | |
| LEFT JOIN civicrm_contribution ON civicrm_contact.id = civicrm_contribution.contact_id | |
| WHERE civicrm_contact.id =8 | |
| GROUP BY civicrm_contribution.source | |
| ORDER BY Cantidad DESC | |
| ) AS T |