Skip to content

Instantly share code, notes, and snippets.

View krhebbar's full-sized avatar

Ravindra Kanchikare krhebbar

View GitHub Profile
@krhebbar
krhebbar / gist:4ff90a22b32f21f2dc9c
Created February 19, 2015 05:36
collective tracking code
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59913529-1', 'auto');
ga('send', 'pageview');
</script>
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
@krhebbar
krhebbar / rails_bootstrap_delete_confirmation_modal.md
Created August 11, 2012 12:46 — forked from trey/rails_bootstrap_delete_confirmation_modal.md
A nice delete confirmation modal in Rails courtesy of Bootstrap

Here's what you get.

Some JavaScript

// Delete confirmation modals
$('#delete-confirm').on('show', function() {
  var $submit = $(this).find('.btn-danger'),
      href = $submit.attr('href');
  $submit.attr('href', href.replace('pony', $(this).data('id')));
@krhebbar
krhebbar / config.ru
Created May 15, 2012 09:35
deploy static page on heroku
#
# deploy a static page on heroku
# ------------------------------
#
#
# required site structure:
#
# name-of-site
# |- config.ru
# +- public