Skip to content

Instantly share code, notes, and snippets.

View kpvarma27's full-sized avatar

Krishna Prasad Varma kpvarma27

  • Dubai, United Arab Emirates
View GitHub Profile
@kpvarma27
kpvarma27 / gist:8fe9ed04092bb7868917
Last active August 29, 2015 14:06
Humdrum Gemfile Template
gem("pg")
gem("kaminari")
gem("bootstrap-kaminari-views")
gem("simple_form")
gem("bootstrap-datepicker-rails")
gem("state_machine")
gem("bcrypt", :version=>"~> 3.1.7")
gem("ruby-progressbar")
gem("colorize")
gem("query-validation-rails")
@kpvarma27
kpvarma27 / gist:6290663
Last active December 21, 2015 10:18
Create a Rails application with bootstrap3 gem e.g: rails _3.2.13_ new humdrum_test_bootstrap -m https://gist.github.com/kpvarma/6290663/raw --skip-test-unit --skip-bundle -d postgresql
# Thin is a light weight web server better than Webrick
gem("thin")
# bootstrap 3 assets for rails
gem("bootstrap3-rails")
# Used for generating pagination links
gem("kaminari")
# This helps to create kaminari views compatible with bootstrap (at the time of writing this gist, this gem supports bootstrap 2 styles only)
@kpvarma27
kpvarma27 / gist:5676414
Created May 30, 2013 08:08
WindoZ - Draggable Windo
<a href="javascript:void(0);"
class="pull-right font-size-10 text-color-blue windoz clone-content"
data-clone="div_section_2_2_clone_example"
data-width="700"
data-height="400"
data-draggable="true"
data-title="The Hangover Part III (2013)">Read More</a>
@kpvarma27
kpvarma27 / gist:5675911
Last active December 17, 2015 21:39
WindoZ - Clone Content
<div class="thumbnails margin-left-10">
<div class="thumbnail" style="width:40%;height:350px;">
<div class="image-holder">
<img alt="Mv5bmta0nje1mzmzodheqtjeqwpwz15bbwu3mdy4mtq3mzk@._v1_sx214_" src="http://ia.media-imdb.com/images/M/MV5BMTA0NjE1MzMzODheQTJeQWpwZ15BbWU3MDY4MTQ3Mzk@._V1_SX214_.jpg" style="width:100%">
</div>
<div class="caption">
<h3>The Hangover Part III (2013)</h3>
<p>Two years after the bachelor party in Las Vegas, Phil, Stu, Alan, and Doug jet to Thailand for Stu's wedding. Stu's plan for a subdued pre-wedding brunch, however, goes seriously awry. “It seems like you haven’t learned anything” Alan scolds his co-star Stu in the third chapter of the biggest bromantic comedy of the last decade.</p>
<a href="javascript:void(0);" class="pull-right font-size-10 text-color-blue windoz clone-content" data-clone="div_section_2_2_clone_example" data-width="700" data-height="400" data-title="The Hangover Part III (2013)">Read More</a>
@kpvarma27
kpvarma27 / gist:5675898
Created May 30, 2013 05:37
Windoz - Inline Content
<h4>The Hangover Part III (2013)</h4>
<p>
Two years after the bachelor party in Las Vegas, Phil, Stu, Alan, and Doug jet to Thailand for Stu's wedding. Stu's plan for a subdued pre-wedding brunch, however, goes seriously awry.
<a href="javascript:void(0);" class="font-size-10 text-color-blue windoz inline-content" data-description="Two years after the bachelor party in Las Vegas, Phil, Stu, Alan, and Doug jet to Thailand for Stu's wedding. Stu's plan for a subdued pre-wedding brunch, however, goes seriously awry. “It seems like you haven’t learned anything” Alan scolds his co-star Stu in the third chapter of the biggest bromantic comedy of the last decade. The very same would apply to the creators of The Hangover: Part II; the regurgitated sequel that could have been written by wedging the original script into a photocopier. As for Part III of the trilogy, the man-child’s words have never been more appropriate.
The Wolf-Pack’s latest outing sees their past roofies-induced misadventures return to haunt t
@kpvarma27
kpvarma27 / gist:5669261
Last active December 17, 2015 20:39
WindoZ - Inline Images - Custom Width
<a href="javascript:void(0);" class="windoz inline-image" data-title="The floating boats in the lake" data-url="http://farm3.staticflickr.com/2885/8837800138_46a11c639c_b.jpg">
<img alt="8837800138_46a11c639c_b" src="http://farm3.staticflickr.com/2885/8837800138_46a11c639c_b.jpg">
</a>
<a href="javascript:void(0);" class="windoz inline-image" data-title="The floating boats in the lake" data-width="600" data-url="http://farm3.staticflickr.com/2885/8837800138_46a11c639c_b.jpg">
<img alt="8837800138_46a11c639c_b" src="http://farm3.staticflickr.com/2885/8837800138_46a11c639c_b.jpg">
</a>
@kpvarma27
kpvarma27 / gist:5669254
Last active December 17, 2015 20:39
WindoZ - Inline Images - Custom Height
<a href="javascript:void(0);" class="windoz inline-image" data-title="Desert Beauty - the lone tree in dried dessert." data-url="http://farm8.staticflickr.com/7444/8832618148_005fe1225c_z.jpg">
<img alt="8832618148_005fe1225c_z" src="http://farm8.staticflickr.com/7444/8832618148_005fe1225c_z.jpg">
</a>
<a href="javascript:void(0);" class="windoz inline-image" data-title="Desert Beauty - the lone tree in dried dessert." data-height="300" data-url="http://farm8.staticflickr.com/7444/8832618148_005fe1225c_z.jpg">
<img alt="8832618148_005fe1225c_z" src="http://farm8.staticflickr.com/7444/8832618148_005fe1225c_z.jpg">
</a>
@kpvarma27
kpvarma27 / gist:5669017
Created May 29, 2013 09:16
WindoZ - Inline Images - Image with title & description
<a href="javascript:void(0);" class="windoz inline-image" data-title="The floating boats in the lake" data-description="Humpty Dumpty sat on a wall. Mary had a little lamb. little lamb. little lamb." data-url="http://farm9.staticflickr.com/8280/8787995412_71e2312d5a_z.jpg">
<img alt="8787995412_71e2312d5a_z" src="http://farm9.staticflickr.com/8280/8787995412_71e2312d5a_z.jpg">
</a>
@kpvarma27
kpvarma27 / gist:5668912
Last active December 17, 2015 20:39
WindoZ - Inline Images - Image with title / description
<a href="javascript:void(0);" class="windoz inline-image" data-title="Tachometer in an artist's view" data-url="/assets/gallery/1.jpg">
<img alt="1" src="/assets/gallery/1.jpg">
</a>
<a href="javascript:void(0);" class="windoz inline-image" data-title="High Clarity - Green Login Button" data-url="/assets/gallery/2.jpg">
<img alt="2" src="/assets/gallery/2.jpg">
</a>
@kpvarma27
kpvarma27 / gist:5451904
Last active December 16, 2015 14:49
Use this gist as a template to pass to rails command while creating a new project. $ rails new app_name -m https://gist.github.com/kpvarma/5451904 This command will generate the new application, and then apply the template to the generated output.
gem("thin")
gem("kaminari")
gem("bootstrap-kaminari-views")
gem("simple_form")
gem("bootstrap-datepicker-rails")
gem("markdownizer")
gem_group :development, :test do
gem("capybara")
gem("database_cleaner")