Skip to content

Instantly share code, notes, and snippets.

.Pointer {
cursor: pointer;
}
$(function () {
$("table tr").live("click",function() {
location.href = $(this).attr("url");
});
});
<tr url="http://www.google.at">
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr url="http://www.yahoo.at">
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td><a href="http://www.google.com/">http://www.google.com/</a></td>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td><a href="http://www.yahoo.com/">http://www.yahoo.com/</a></td>
<td>4</td>
<td>5</td>
@znake
znake / gist:4524458
Last active August 9, 2020 08:14
link table row with jquery
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Full Row Select Using jQuery</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<style type="text/css">
.Pointer {
cursor: pointer;
}
@znake
znake / gist:3788285
Created September 26, 2012 14:11
use a specific version of rvms rubies
map <Leader>rr :set makeprg=~/.rvm/bin/ruby-1.9.3-p194\ %<cr>:make<cr>
@znake
znake / gist:3475926
Created August 26, 2012 07:55
Run Python in Vim
map <Leader>rp :set makeprg=python\ %<cr>:make<cr>
@znake
znake / gist:3475759
Created August 26, 2012 07:39
Run Ruby in VIM commands
:set makeprg=ruby\ %
:make
@znake
znake / gist:3475724
Created August 26, 2012 07:32
Run Ruby in VIM
map <Leader>rr :set makeprg=ruby\ %<cr>:make<cr>
@znake
znake / gist:3089157
Created July 11, 2012 09:00
clear fontcache OSX
$ atsutil databases -removeUser
# If you want to remove the font cache for all users, use this command, and provide your admin password when asked:
$ sudo atsutil databases -remove
# Once you’ve cleared the caches, you should stop and restart the ATS server with these commands:
$ atsutil server -shutdown
$ atsutil server -ping