Skip to content

Instantly share code, notes, and snippets.

@wzhd
wzhd / vcf2csv.py
Last active August 29, 2015 14:17 — forked from senko/vcf2csv.py
#!/usr/bin/env python
"""
Parse phone and email records out of vCard file and store them in a CSV.
Copyright (C) 2012 Senko Rasic <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
#include <iostream>
bool order(int &a, int &b, int &c) {
if (a < b && b < c)
return true;
else {
if (a > b) {
std::swap(a, b);
}
if (b > c) {

Keybase proof

I hereby claim:

  • I am wzhd on github.
  • I am wzhd (https://keybase.io/wzhd) on keybase.
  • I have a public key whose fingerprint is 546B 9D24 C61A CD6C 523C 2AF5 8CD7 B6A1 40BA 5CFD

To claim this, I am signing this object:

# some example code from pyusb, otherwise its all public domain. enjoy & keep hackin! - ladyada
import sys
# sys.path.append('/Users/qdot/git-projects/library/usr_darwin_10.5_x86/lib/python2.6/site-packages')
import usb.core
import usb.util
import sys
import time
# find our device