Skip to content

Instantly share code, notes, and snippets.

View marufbd's full-sized avatar
🎯
Focusing

Maruf Rahman marufbd

🎯
Focusing
  • Sydney, Australia
View GitHub Profile
@marufbd
marufbd / BinaryHelper.cs
Created November 25, 2020 03:35
Binary helper C#
using System;
using System.Text;
using System.Text.RegularExpressions;
namespace CryptoLib
{
public class BinaryHelper
{
public static string ToBase64UrlString(byte[] payload)
{
@marufbd
marufbd / RSA-key-commands.md
Last active May 28, 2020 02:53
Openssl for RSA keys

Generate Key Pair

openssl genrsa -out keypair.pem 2048

To extract the public part, use the rsa context:

openssl rsa -in keypair.pem -pubout -out public.pem

@marufbd
marufbd / index.html
Last active December 26, 2015 18:09
Google maps custom overlay with D3 for live position update
<!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>
@marufbd
marufbd / d3.chart.analog.js
Last active March 8, 2024 19:41
Time series chart(irregular interval) with shared x-axis and zoom
(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);