Skip to content

Instantly share code, notes, and snippets.

View sonictk's full-sized avatar
🤞
build.bat and hope everything works

Siew Yi Liang sonictk

🤞
build.bat and hope everything works
View GitHub Profile
@sonictk
sonictk / thunderbird_to_mutt.py
Created April 13, 2018 21:26 — forked from cboddy/thunderbird_to_mutt.py
A script to parse a csv address-book export from thunderbird and create mutt-aliases for each contact.
"""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"""
// 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>
@sonictk
sonictk / 0_reuse_code.js
Created October 23, 2015 08:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console