Skip to content

Instantly share code, notes, and snippets.

@rahuldass
rahuldass / Google reCAPTCHA with ASP.NET.md
Last active August 29, 2015 14:01
Using Google reCAPTCHA with ASP.NET #asp.net #captcha

Google reCAPTCHA with ASP.NET


The reCAPTCHA ASP.NET Library provides a simple way to place a CAPTCHA on ASP.NET website, help us stop bots from abusing it.

Download the reCAPTCHA Library [here][1]

Steps

After signed up for your API keys, below are basic instructions for installing reCAPTCHA on site with ASP.NET:

@rahuldass
rahuldass / Disable right-click on Images.md
Last active August 29, 2015 13:56
Disable right-click on Images #javascript

Disable right-click on Images


This script will disable right-click only on images.

$('img').bind('contextmenu', function(e) {
    return false;
});
@rahuldass
rahuldass / SQL Server Commands.md
Last active August 29, 2015 13:56
SQL Server Commands #sqlserver

###SQL Server Commands

Database used Northwind sample Database

-- USE for changing Database.
-----------------------------
USE Northwind
@rahuldass
rahuldass / HTML5 Starter Template.md
Last active August 29, 2015 13:56
HTML5 Starter Template #html5

###HTML5 Starter Template

Basic HTML5 starter template with HTML5 Shiv for older IE browsers.

HTML

<!doctype html>
<html lang="en">
@rahuldass
rahuldass / Single Page Website with Smooth Scrolling.md
Last active August 29, 2015 13:56
Single Page Website with Smooth Scrolling #javascript
@rahuldass
rahuldass / Perfect Full Page Background Image.md
Last active May 7, 2023 16:43
Perfect Full Page Background Image #css

###Perfect Full Page Background Image

We can do this purely through CSS thanks to the background-size property now in CSS3. We'll use the html element (better than body as it's always at least the height of the browser window). We set a fixed and centered background on it, then adjust it's size using background-size set to the cover keyword.

CSS

html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
 -webkit-background-size: cover;