Skip to content

Instantly share code, notes, and snippets.

carlosescri / xls2csv
Created Oct 21, 2013
Requires the xlrd library to read Excel 97 .xls files.
View xls2csv
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from os import path
from optparse import OptionParser
from xlrd import open_workbook
carlosescri / gist:6363927
Created Aug 28, 2013
Create a datetime from a string in a given format.
View gist:6363927
import time
from datetime import datetime
def str_to_datetime(str_date, str_format="%Y-%m-%d %H:%M"):
""" Creates a datetime from a string in a given format. """
dt = time.strptime(str_date, str_format)
dt = time.mktime(dt)
carlosescri / gist:5848477
Created Jun 24, 2013 — forked from paulirish/gist:2926904
SublimeLinter User Config (from Paul Irish)
View gist:5848477
"// my options for SublimeLinter " : "//",
"jshint_options" : {
"boss": true,
"browser": true,
"curly": false,
"devel": true,
"eqeqeq": false,
"eqnull": true,
"expr": true,