Skip to content

Instantly share code, notes, and snippets.

View shishirsharma's full-sized avatar
🤑
Focusing

Shishir Sharma shishirsharma

🤑
Focusing
View GitHub Profile
@shishirsharma
shishirsharma / README.md
Created March 18, 2019 13:59 — forked from tmilos/README.md
Modified Preorder Tree Traversal

Modified Preorder Tree Traversal

Hierarchical data metrics that allows fast read operations on tree like structures.

Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.

Sample implementation

@shishirsharma
shishirsharma / Chrome custom scrollbar.css
Created April 26, 2018 07:57 — forked from oumu/Chrome custom scrollbar.css
CSS : Chrome custom scrollbar
/*http://support.google.com/chrome/?hl=en*/
::-webkit-scrollbar {
height: 16px !important;
overflow: visible !important;
width: 16px !important;
}
::-webkit-scrollbar-thumb {
background: -webkit-linear-gradient(left, rgba(198,198,198,1) 0%,rgba(220,220,220,1) 100%) !important;
background-clip: padding-box !important;
@shishirsharma
shishirsharma / will_paginate.rb
Last active December 22, 2015 03:28 — forked from isaacbowen/will_paginate.rb
Works with Bootstrap 3 and Will_paginate 3.0.4 and Sinatra
# gist https://gist.github.com/expertmind/6410029
# Based on https://gist.github.com/isaacbowen/1182136
module WillPaginate
module Sinatra
module Helpers
include ViewHelpers
def will_paginate(collection, options = {}) #:nodoc: