Skip to content

Instantly share code, notes, and snippets.

Madhusudhan Srinivasa madhums

Block or report user

Report or block madhums

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
madhums / base64-image-upload.js
Created Sep 14, 2014
save base64 encoded image
View base64-image-upload.js
* Taken from
var fs = require('fs');
// string generated by canvas.toDataURL()
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0"
+ "3gAAAABJRU5ErkJggg==";
// strip off the data: url prefix to get just the base64-encoded bytes
madhums / gin_html_render.go
Last active Nov 5, 2019
render html templates in gin (go)
View gin_html_render.go
// Package GinHTMLRender provides some sugar for gin's template rendering
// This work is based on gin contribs multitemplate render
// Usage
// router := gin.Default()
// // Set html render options
// htmlRender := GinHTMLRender.New()
madhums / docker-compose.yml
Created Aug 15, 2019
docker with nginx and php-fpm
View docker-compose.yml
version: '3.3'
image: php:7.1-fpm
- .:/var/www/html
working_dir: /var/www/html
- web
madhums /
Created Jul 9, 2019
installing android emulator using cli on a mac

In your command line

brew cask install android-sdk
sdkmanager "emulator"
sdkmanager "platform-tools"
sdkmanager "system-images;android-26;google_apis;x86_64"
avdmanager create avd -n NAME -k "system-images;android-26;google_apis;x86_64" # the one that you use above

Keybase proof

I hereby claim:

  • I am madhums on github.
  • I am madhums ( on keybase.
  • I have a public key ASBVMIs9eqWnfu0aNDPJA5_wKDQv66UV2VaW4wuo7Ev5VQo

To claim this, I am signing this object:

madhums / expressjs-base64-image.js
Created Mar 9, 2012 — forked from hackable/expressjs-base64-image.js
Node.js base64 encode a downloaded image for use in data URI
View expressjs-base64-image.js
express = require("express")
request = require("request")
BufferList = require("bufferlist").BufferList
app = express.createServer(express.logger(), express.bodyParser())
app.get "/", (req, res) ->
if req.param("url")
url = unescape(req.param("url"))
uri: url
encoding: 'binary'
madhums / graphql-go-mongodb-example.go
Created May 6, 2019 — forked from trunet/graphql-go-mongodb-example.go
Minimal example of GraphQL Golang and MongoDB playing nicely together. Edit
View graphql-go-mongodb-example.go
// Embedded in this article
package main
import (
madhums /
Created Apr 27, 2019
dc movies to watch in order

DC Movies in order

  1. Man of Steel (2013)
  2. Dawn of Justice (2016)
  3. Suicide Squad (2016)
  4. Wonder Woman (2017)
  5. Justice League (2017)
  6. Aquaman (2018)
  7. Shazam! (2019)
madhums /
Created Apr 27, 2019
marvel movies to watch in order

Marvel movies in order

  1. Iron Man
  2. The Incredible Hulk
  3. Iron Man 2
  4. Thor
  5. Captain America
  6. Avengers
  7. Iron Man 3
  8. Thor: The Dark World
You can’t perform that action at this time.