Skip to content

Instantly share code, notes, and snippets.

// html
<div id="widget-menu">
<div id="wizard-step-zero" class="front create-widget-widget add-widget widget beta" rel="new-agent"><a id="add-widget" href="#" data-action="add-widget" style="display: block; ">+</a></div>
<div class="back create-widget-widget widget" id="wizard-step-one" style="display:none;">
<span class="options beta"><a class="button" data-action="destroy" title="Entfernen"><span>Entfernen</span></a></span>
<div class="category-container">
<div class="category icon" id="cww-analytics" title="Analytics"></div>
<div class="category icon" id="cww-intelligence" title="Intelligence"></div>
<div class="category icon" id="cww-custom" title="Custom"></div>
@chirantan
chirantan / factorial.rb
Created June 27, 2011 05:46
Factorial Program
class Fixnum
def factorial
self > 1 ? (self * (self - 1).factorial) : 1
end
end
puts 5.factorial
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>Custom Buttons 3.0 (demo)</title>
<style type="text/css">
body {
background:#fff;
padding:20px;
@chirantan
chirantan / Rails auto_link helper regular expression
Created November 25, 2010 10:02
How to override Rails auto_link helper regular expression
#content div.errorExplanation {
background:none repeat scroll 0 0 #FBDDDD;
float:left;
margin:0 0 10px;
padding:10px 0;
width:100%;
}
#content div.errorExplanation h2 {
color:#B24040;
font-size:15px;