This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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/,''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Changing Link on Click</title> | |
<script type="text/javascript" charset="utf-8"> | |
var changeLink = function(){ | |
document.getElementById('change').onClick = function(){ | |
// link to be replaced with | |
this.href="https://twitter.com/"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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, initial-scale=1.0"> | |
<link rel="stylesheet" type="text/css" media="screen" href="reflection.css" /> | |
<title> Image Reflection </title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Please make sure that you already create a file that you are setting in $saveas variable, | |
and set its permission to 777 else you can receive an error telling you like permission | |
denied etc. | |
*/ | |
// file to open and save to | |
$saveas = "capitalizr.py.zip"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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, initial-scale=1.0"> | |
<title> Random Color Generator in JavaScript </title> | |
<script type="text/javascript" charset="utf-8"> | |
// generate random color | |
function colorname() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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>URL Decoder/Encoder</title> | |
<link rel="stylesheet" type="text/css" href="style.css" media="screen" /> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import os | |
import pwd | |
print(pwd.getpwuid(os.getuid())[4]) |
OlderNewer