Skip to content

Instantly share code, notes, and snippets.

View santosh's full-sized avatar
:octocat:

Santosh Kumar santosh

:octocat:
View GitHub Profile
@santosh
santosh / gist:3847532
Created October 7, 2012 08:31
JavaScript: Method #2: Randomize elements on a page
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title> Randomise Element's Position </title>
<style type="text/css" media="screen">
.randomizeme {
position:absolute;
@santosh
santosh / gist:3847513
Created October 7, 2012 08:19
JavaScript: Method #1: Randomize elements on a page
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>Randomize Element</title>
<style type="text/css" media="screen">/* mininal style {{ */
html, body { height: 100%; overflow: hidden;}
@santosh
santosh / gist:3847486
Created October 7, 2012 08:03
JavaScript: Prevent email ID to be harvested by bots
// it will only work until harvester is a crawler
// "human" harvesters can't be prevented from this
//
// write your email address and put some extra weird
// characters in it, e.g. [email protected]
// now replace your weird characters with "nothing".
var link = document.getElementById('email');
link.href = link.href.replace(/NOSPAM/,'');
link.title = link.title.replace(/NOSPAM/,'');
@santosh
santosh / .gitconfig
Last active October 9, 2015 06:27
My .gitconfig file
[core]
editor = vii # See : http://unix.stackexchange.com/a/45877/22240
whitespace = nowarn
pager = less
diff = vimdiff
excludesfile = ~/.gitignore_global
[user]
name = # Santosh Kumar
email = # {Email Here}
[github]