Skip to content

Instantly share code, notes, and snippets.

View tamizhvendan's full-sized avatar
🙋‍♂️
The code is not the goal. Solving the problem is!

Tamizhvendan S tamizhvendan

🙋‍♂️
The code is not the goal. Solving the problem is!
View GitHub Profile
@tamizhvendan
tamizhvendan / ReadableReadyEventHandler.js
Created March 27, 2012 01:16
A Readable jQuery Ready Event Handler
$(function () {
var $warningDialog = $("#warning"),
openDialog = function () {
$warningDialog.dialog("open");
},
closeDialog = function () {
$warningDialog.dialog("close");
@tamizhvendan
tamizhvendan / iGoogle-Sample.html
Created September 5, 2012 07:18
Sample iGoogle Page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample iGoogle Page</title>
<style type="text/css">
/* Entire Page has been divided into 3Columns.
Note: iGoogle Page has 3 columns */
@tamizhvendan
tamizhvendan / iGoogle-Sample-Fixed-Widgets.html
Created October 5, 2012 07:36
Sample iGoogle Page with Fixed widgets
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample iGoogle Page</title>
<style type="text/css">
/* Entire Page has been divided into 3Columns.
Note: iGoogle Page has 3 columns */
@tamizhvendan
tamizhvendan / 0_reuse_code.js
Created October 17, 2013 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
namespace Earth.Developers
{
class Tamizhvendan
{
public static void Main(string[] args)
{
System.Console.WriteLine("Hearty Thanks to all blog writers " +
"across the globe who inspired me to write this blog !!");
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VehicleRegNo
{
class Program
{
private static int[] GetExclusiveVehicleRegNos()
<div id="column1">
<br />
<div class="Widget">
<br />
<div class="WidgetHeader PurpleWidgetHeader">
<br />
Widget 1</div>
<br />
<div class="WidgetBody">
<br />
/* Entire Page has been divided into 3Columns. Note: iGoogle Page has 3 columns */
#column1, #column2, #column3
{
display: inline-block;
float: left;
width: 33%;
height: auto;
text-align: center;
padding-bottom: 100px;
}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="http://jqueryui.com/ui/jquery.ui.core.js" type="text/javascript"></script>
<script src="http://jqueryui.com/ui/jquery.ui.widget.js" type="text/javascript"></script>
<script src="http://jqueryui.com/ui/jquery.ui.mouse.js" type="text/javascript"></script>
<script src="http://jqueryui.com/ui/jquery.ui.sortable.js" type="text/javascript"></script>
$(document).ready(function () {
$("#column1,#column2,#column3").sortable({
connectWith: "#column1,#column2,#column3",
handle: '.WidgetHeader', opacity: 0.6
});
$("#column1,#column2,#column3").disableSelection();
});