This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'date' | |
require 'uri' | |
# usage: ruby import.rb my-blog.xml | |
# my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
data = File.read ARGV[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string ToMD5(this string input) | |
{ | |
//comment about this | |
var sb = new System.Text.StringBuilder(); | |
//comment about that | |
var md5 = System.Security.Cryptography.MD5.Create(); | |
var bytesFromInput = System.Text.Encoding.Unicode.GetBytes(input); | |
var hashedBytes = md5.ComputeHash(bytesFromInput); | |
NewerOlder