Skip to content

Instantly share code, notes, and snippets.

View ameenaziz's full-sized avatar
💭
code

AzA ameenaziz

💭
code
View GitHub Profile
(function(){
console.log('consolelog from external source');
}());
@ameenaziz
ameenaziz / dabblet.css
Created October 31, 2015 19:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@ameenaziz
ameenaziz / datacleaner.py
Created January 5, 2020 02:50
Remove xml node and containing parent node that has a specific string
import xml.etree.ElementTree as ET
tree = ET.parse('testdata.xml')
root = tree.getroot()
for parentNode in root.findall('ParentXMLTag'):
childNode = parentNode.find('ChildXMLTag').text
search_string = "Lorem Ipsum"
if childNode == search_string:
root.remove(parentNode)