openssl genrsa -out keypair.pem 2048
openssl rsa -in keypair.pem -pubout -out public.pem
| using System; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| namespace CryptoLib | |
| { | |
| public class BinaryHelper | |
| { | |
| public static string ToBase64UrlString(byte[] payload) | |
| { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Google maps GpsSensor layer with D3 for live position update</title> | |
| <script src="http://maps.google.com/maps/api/js??v=3.exp&sensor=true"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.3.3/d3.min.js"></script> | |
| (function () { | |
| d3.analog= function() { | |
| var height = 100, gap=10, | |
| xValue = function(d) { return d[0]; }, | |
| xScale = null, | |
| color = d3.scale.category10(); | |
| function chart(selection) { | |
| selection.each(function(d) { | |
| var g = d3.select(this); |