- run Cygwin setup.exe
- install these packages that are not installed by default: automake, gcc, git and pkg-config
- browse http://libevent.org
- download libevent-2.0.21-stable.tar.gz
import xml.etree.ElementTree as ET | |
def CDATA(text=None): | |
element = ET.Element('![CDATA[') | |
element.text = text | |
return element | |
ET._original_serialize_xml = ET._serialize_xml |
%% start of file `template.tex'. | |
%% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com). | |
% | |
% This work may be distributed and/or modified under the | |
% conditions of the LaTeX Project Public License version 1.3c, | |
% available at http://www.latex-project.org/lppl/. | |
\documentclass[11pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman') | |
\usepackage{tabularx} |
#!/usr/bin/env python | |
""" | |
Simple Python script that combines a folder of pdfs into a single | |
pdf. By default the pdfs are merged in alphabetical order and | |
only appear once. To change this create a "list.txt" file in the | |
directory with the pdfs to merge and list the order of the pdfs | |
to merge. | |
Ex list.txt: | |
doc2.pdf |
#!/usr/bin/env python3 | |
""" | |
Usage: | |
dev_installccs [OPTIONS] <ccs_version> | |
dev_installccs (--help|-h) | |
dev_installccs (--version|-v) | |
Options: | |
""" |
#!/usr/bin/python | |
import os | |
import sys | |
import string | |
import syslog | |
# Import the client module | |
from deluge.ui.client import client | |
# Import the reactor module from Twisted - this is for our mainloop |
I hereby claim:
To claim this, I am signing this object:
foreach($arg in $args) | |
{ | |
Get-Command $arg | Select-Object -ExpandProperty Definition | |
} |
def get_node_text(root): | |
text = "" | |
if root.text: | |
text = root.text.strip() | |
for child in root: | |
text += get_node_text(child) | |
if root.tail: |
def dl_file(url, directory=os.path.dirname(__file__), user=None, password=None, filename=None): | |
""" | |
Download a file from a url to a directory | |
@param url: url of a file | |
@param directory: directory to save the file into | |
@return: True if file was downloaded successfully, False otherwise | |
""" | |
# Disable the proxy |