Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
code

AzA ameenaziz

💭
code
  • UK
View GitHub Profile
@ameenaziz
ameenaziz / datacleaner.py
Created Jan 5, 2020
Remove xml node and containing parent node that has a specific string
View datacleaner.py
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)
@ameenaziz
ameenaziz / dabblet.css
Created Oct 31, 2015
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
View environments.js
(function(){
console.log('consolelog from external source');
}());
You can’t perform that action at this time.