Skip to content

Instantly share code, notes, and snippets.

View rhythmpatel's full-sized avatar
🏠
Working from home

Rhythm Ruparelia rhythmpatel

🏠
Working from home
  • Rajkot, Gujarat
  • 01:30 (UTC +05:30)
View GitHub Profile
@rhythmpatel
rhythmpatel / README.md
Created June 12, 2021 13:13 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@rhythmpatel
rhythmpatel / commit-message-format.md
Last active December 23, 2019 10:03 — forked from develar/commit-message-format.md
Commit Message Format

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:

<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
@rhythmpatel
rhythmpatel / _bootstrap-sass-xl.scss
Created December 6, 2017 13:19 — forked from juukie/_bootstrap-sass-xl.scss
Add xl step to bootstrap sass. Should be after bootstrap.scss.
/* Place this after bootstrap.scss */
$screen-xl: 1560px !default;
$screen-xl-min: $screen-xl !default;
$screen-xl-desktop: $screen-xl-min !default;
$screen-lg-max: ($screen-xl-min - 1) !default;
$container-xlarge-desktop: (1530px + $grid-gutter-width) !default;
$container-xl: $container-xlarge-desktop !default;
.container {
@rhythmpatel
rhythmpatel / pop-stay.js
Last active April 7, 2017 07:05
BS Popover
/* Bootstrap Popover on hover
* Problem: When the user moves the mouse on the popover, it should not close
* Solution from fiddle - http://jsfiddle.net/WojtekKruszewski/Zf3m7/22/
*/
var originalLeave = $.fn.popover.Constructor.prototype.leave;
$.fn.popover.Constructor.prototype.leave = function(obj){
var self = obj instanceof this.constructor ?
obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
var container, timeout;
@rhythmpatel
rhythmpatel / 0_reuse_code.js
Created January 27, 2014 08:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console