Skip to content

Instantly share code, notes, and snippets.

@ravasthi
ravasthi / wicket-radio-01.html
Created October 24, 2011 18:37
Radio buttons in Wicket
<input type="radio" name="ticker" value="AAPL"/>Apple<br/>
<input type="radio" name="ticker" value="GOOG"/>Google<br/>
<input type="radio" name="ticker" value="MSFT"/>Microsoft<br/>
@ravasthi
ravasthi / index.html
Created February 6, 2013 17:16
The story thus far…
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
h1
{
color: midnightBlue;
}
p.important
@ravasthi
ravasthi / loadFixture.js
Last active January 3, 2016 14:49 — forked from mavenlink/loadFixture.js
Update original to use jQuery.ajax instead of jasmine.XmlHttpRequest. It should play better with jasmine 2.0.
var uniqueLoadIndicator = null;
// Loads fixure markup into the DOM as a child of the jasmine_content div
spec.loadFixture = function(fixtureName) {
var $destination = $('#jasmine_content');
uniqueLoadIndicator = null;
var indicatorScript = "<script>uniqueLoadIndicator = 'loaded';</s" + "cript>";
// get the markup, inject it into the dom
$destination.html(spec.fixtureHtml(fixtureName) + indicatorScript);
@ravasthi
ravasthi / actual-indentation.jsx
Created October 9, 2016 13:26
Indentation samples
/*
** Indented using the TM command 'Indent Selection' (opt + cmd + [)
*/
import BodyClassName from 'react-body-classname';
import DocumentTitle from 'react-document-title';
import generateDocumentTitle from 'components/lib/pageDisplay';
import React from 'react';
function MyComponent() {
const componentClass = 'my-component';
@ravasthi
ravasthi / .eslintrc.json
Last active May 2, 2018 03:06
eslint-plugin-import issue 238 configuration
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"babel",
"import",
"react"
],
"rules": {
"indent": ["error", 4],
@ravasthi
ravasthi / css3-foundation-01.txt
Created October 27, 2011 18:36
How we bootstrap responsive web designs
styles/
basics/
shared/
styles-compiled/
scripts/
lib/
@ravasthi
ravasthi / _config.yml
Created February 15, 2012 08:59
Multiple authors on Jekyll
authors:
hanzou:
name: Hanzou Hattori
display_name: Hanzou
gravatar: c66919cb194f96c696c1da0c47354a6a
email: hanzou@company.com
web: http://company.com
twitter: company
github: hhattori
jorgen: