Skip to content

Instantly share code, notes, and snippets.

Alberto ramsys

View GitHub Profile
@ramsys
ramsys / gist:5419656
Created Apr 19, 2013
Create a xml file from a csv file
View gist:5419656
import csv
#import sys
from xml.etree import ElementTree
from xml.dom import minidom
csvFileName = "Distribuidoras.csv"
xmlFileName = "distribuidoras.xml"
def unicode_csv_reader(utf8_data, dialect=csv.excel, **kwargs):
@ramsys
ramsys / gist:5419469
Created Apr 19, 2013
Script in python that print the hex value from a base4 string passed by argument
View gist:5419469
import sys
import base64
#import binascii
#Controlamos que tenga argumento
if(len(sys.argv)!=2):
print 'usage: convert_base64_to_hex.py <DigestValue>'
sys.exit(2)
base64string = sys.argv[1]
You can’t perform that action at this time.