Skip to content

Instantly share code, notes, and snippets.

View bhupal4all's full-sized avatar

Ranga Bhupal bhupal4all

  • Bangalore, India
View GitHub Profile
@bhupal4all
bhupal4all / commit-msg.sh
Last active July 15, 2021 03:28
Git Commit Hook to enforce User to have JIRA or BUG ID and commit should start with ID. Copy the script to *.git/hooks/* fodler
#!/bin/sh
# echo -e command takes color code
# \e[32m -- Green
# \e[31m -- Red
# \e[0m -- Reset/Normal Color
GREEN="\e[32m"
RED="\e[31m"
ENDCOLOR="\e[0m"
@bhupal4all
bhupal4all / SOLID Principles.md
Last active December 7, 2019 05:49
Software Design Principles

SOLID Principles for Design

Intention


To make design to be more

  • Understandable
  • Easy to extend
  • Easy to Maintain, Refactor

SOLID is an acronym for 5 important design principles

@bhupal4all
bhupal4all / convert-image-to-base64.js
Created February 2, 2017 13:14 — forked from HereChen/convert-image-to-base64.js
convert image to base64
/**
* version1: convert online image
* @param {String} url
* @param {Function} callback
* @param {String} [outputFormat='image/png']
* @author HaNdTriX
* @example
convertImgToBase64('http://goo.gl/AOxHAL', function(base64Img){
console.log('IMAGE:',base64Img);
})
@bhupal4all
bhupal4all / gchart_offline.html
Created December 19, 2016 12:38 — forked from makevoid/gchart_offline.html
GChart offline example
<!--
How to use Google JS Visualization Api offline, step by step
this approach might work with other libraries loaded with google.load, after all it's still JavaScript!!!
-->
<!DOCTYPE html>
<html>