Skip to content

Instantly share code, notes, and snippets.

View krukid's full-sized avatar

Viktors Buls krukid

  • Juro
  • Riga, Latvia
View GitHub Profile
@krukid
krukid / gist:927150
Created April 19, 2011 11:16
safari5 dialog z-index bug minimal test case
<!DOCTYPE html>
<html>
<head>
<title>Safari5 Dialog Z-Index Bug</title>
<style type="text/css">
#overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
@krukid
krukid / css3 cycled table row highlighting.html
Created March 29, 2011 21:11
how to preserve correct row highlighting when dynamically manipulating table structure (with css3); useful for ajaxed tables
<!-- CSS3 ROW STYLE CYCLING
* alternative pseudo-class notation:
:nth-child(2n) == :nth_child(even)
:nth-child(2n+1) == :nth_child(odd)
-->
<style type="text/css">
table.css-cycle tr:nth-child(2n) {
background: silver;
}
@krukid
krukid / gist:756726
Created December 28, 2010 00:18
Anchor: selective underline CSS
<!DOCTYPE html>
<html>
<head>
<title>Anchor: selective underline CSS</title>
<style type="text/css">
.a {
text-decoration:none;
font-size: 40px;
}
.w {
@krukid
krukid / ROR for virtualized ubuntu
Created February 24, 2010 02:12
Ruby on Rails for virtualized Ubuntu
PURPOSE
-------
The following is a walkthrough of Ruby on Rails installation on a VirtualBox'ed Ubuntu and some related tricks.
NOTES
-----
* Most of the commands below require superuser privileges, so with that in mind we proceed.