Skip to content

Instantly share code, notes, and snippets.

View vittoriozamboni's full-sized avatar

Vittorio Zamboni vittoriozamboni

  • Hapflows
  • Dublin, Ireland
View GitHub Profile
@vittoriozamboni
vittoriozamboni / backbone.html
Last active January 14, 2021 09:45
Email backbone and content example
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
</head>
<body
style="
export const METHODS = {
GET: 'GET',
POST: 'POST',
PATCH: 'PATCH',
PUT: 'PUT',
DELETE: 'DELETE'
};
let commonHeaders = {};
@vittoriozamboni
vittoriozamboni / xml_split.py
Created January 14, 2016 13:47 — forked from benallard/xml_split.py
Small python script to split huge XML files into parts.It takes one or two parameters. The first is always the huge XML file, and the second the size of the wished chunks in Kb (default to 1Mb) (0 spilt wherever possible)The generated files are called like the original one with an index between the filename and the extension like that: bigxml.xm…
#!/usr/bin/env python
import os
import xml.parsers.expat
from xml.sax.saxutils import escape
from optparse import OptionParser
from math import log10
# How much data we process at a time