Skip to content

Instantly share code, notes, and snippets.

View ameenaziz's full-sized avatar

AzA ameenaziz

View GitHub Profile
ameenaziz /
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:
ameenaziz / dabblet.css
Created October 31, 2015 19:27
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
console.log('consolelog from external source');