Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View davidpelayo's full-sized avatar
✌️

David Pelayo davidpelayo

✌️
View GitHub Profile
@davidpelayo
davidpelayo / chatgpt voting test - psc
Last active May 23, 2023 19:58
chatgpt voting test - psc
per a la
UN PROGRAMA PER A LA MAJORIA
ÍNDEX DE COMPROMISOS
1. El primer mandat optimista, 2019-2023.....................................................................................7
1.1.- Un model de societat justa, cohesionada i inclusiva............................................8
1.2.- Un fort impuls en la transformació urbana, la cohesió territorial,
i en la cohesió i inclusió social...........................................................................................9
Bloc 1: Transformació urbana
2. Un projecte per a la transformació urbana,
@davidpelayo
davidpelayo / mbox-to-csv.py
Created March 3, 2016 21:28
Simple mbox parser to csv in Python
import mailbox
import csv
writer = csv.writer(open("mbox-output.csv", "wb"))
for message in mailbox.mbox('file.mbox/mbox'):
writer.writerow([message['message-id'], message['subject'], message['from']])
@davidpelayo
davidpelayo / agnoster.zsh-theme
Created November 29, 2017 07:53 — forked from elijahmanor/agnoster.zsh-theme
Custom Agnoster Zsh Theme to Add Node & Npm Versions
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline