This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""parse a csv address-book export from thunderbird and create mutt-aliases for each contact""" | |
import csv | |
import collections | |
import argparse | |
Contact = collections.namedtuple("Contact", ["first", "last", "email"]) | |
def line_to_contact(line): | |
"""return: Contact based on csv line""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: pjson.h - written by Rich Geldreich 2012 - License: Unlicense http://unlicense.org/ | |
#ifndef PURPLE_JSON_H | |
#define PURPLE_JSON_H | |
#ifdef WIN32 | |
#pragma once | |
#endif | |
#include <string> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |