Skip to content

Instantly share code, notes, and snippets.

@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: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;
}
<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>
<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>
$(function () {
$("table tr").live("click",function() {
location.href = $(this).attr("url");
});
});
.Pointer {
cursor: pointer;
}