Skip to content

Instantly share code, notes, and snippets.

View Artem-Mamchych's full-sized avatar

Artem Mamchych Artem-Mamchych

  • SoftServe
  • Ukraine
View GitHub Profile
@Artem-Mamchych
Artem-Mamchych / HttpLoggerFilter.java
Created October 27, 2014 14:40
HttpLoggerFilter - REST method and params logger
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletOutputStream;
import javax.servlet.ServletRequest;
@Artem-Mamchych
Artem-Mamchych / lxml example
Created January 18, 2012 22:36
Пример использования lxml
# coding: utf8
xml = '''<?xml version="1.0" encoding="UTF-8"?>
<soft>
<os>
<item name="linux" dist="ubuntu">
This text about linux
</item>
<item name="mac os">
Apple company