Skip to content

Instantly share code, notes, and snippets.

💭
code

AzA ameenaziz

💭
code
  • UK
Block or report user

Report or block ameenaziz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View environments.js
(function(){
console.log('consolelog from external source');
}());
@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%;
@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)
You can’t perform that action at this time.