Skip to content

Instantly share code, notes, and snippets.

@abhishekdagarit
abhishekdagarit / Contract.md
Last active October 25, 2016 21:34 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

#Contract

Between [company name]

And [customer name].

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@abhishekdagarit
abhishekdagarit / Moving footer the the bottom of page using bootstrap
Last active October 25, 2016 21:38
Flushing footer to bottom of the page, twitter bootstrap
@abhishekdagarit
abhishekdagarit / Disable mouse scroll wheel zoom on embedded Google Maps
Created October 25, 2016 21:29
Disable mouse scroll wheel zoom on embedded Google Maps
Question:
I work on a WordPress site where the authors usually embed Google Maps using iFrames in most posts.
Is there a way to disable the zoom via mouse scroll wheel on all of them using Javascript?
Solution:
I was having the same problem: when scrolling the page then the pointer becomes over the map,
it starts to zoom in/out the map instead of continuing scrolling the page. :(
@abhishekdagarit
abhishekdagarit / fullscreen homepage video.html
Created October 26, 2016 00:46
To make a video appear in the background of a page and to make that take the entire screen size.
<!-- Video background -->
<div class="row" id="bgvid">
<video controls width="100%" height="100%" autoplay="autoplay" loop="loop" muted="muted">
<source src="rain.mp4" type="video/mp4">
Rainfall
</video>
</div>
<!-- Video background ends-->
@abhishekdagarit
abhishekdagarit / deploy-static-site-heroku.md
Created November 1, 2016 19:26 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@abhishekdagarit
abhishekdagarit / html file.css
Created June 4, 2017 18:05
Code for putting an image as banner in Bootstrap
#banner{
background-image: url('images/mac.jpg');
min-height: 800px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
height:100%;
&nbsp;
@abhishekdagarit
abhishekdagarit / Align an image to centre in bootstrap.html
Created June 4, 2017 18:08
Align an image to centre in bootstrap
use class “centre-block"
There is .center-block class in Twitter Bootstrap 3 (Since v3.0.1), so use:
<img src="..." alt="..." class="img-responsive center-block" />
@abhishekdagarit
abhishekdagarit / Working a tableu.md
Last active September 23, 2017 08:37
Working a tableau

Working a tableau

The parts involved in a tableau are:

  1. Hierarchies
  2. Groupings
  3. Filters
  4. Drag Drop Feature.
  5. Cleaning the visualisation: Uncheck what you do not need.
  6. Dashboard
@abhishekdagarit
abhishekdagarit / Printing a dataset in SAS.md
Last active September 22, 2017 16:00
Printing in SAS

Printing a dataset

proc print data = d1;
run;

Printing only one variable