Skip to content

Instantly share code, notes, and snippets.

Avatar

Prasanna Natarajan npras

View GitHub Profile
View Showing-Gowtham-Basic-HTML.markdown
View jsbin.xejezefu.css
p {
font-size: 14px;
text-align: center;
color: orange;
}
View jsbin.hojek.css
.one {
background: green;
}
.two {
background: red;
}
View jsbin.ficowica.css
div#container {
border: 2px solid black;
background: #ddd;
width: 485px;
}
p {
background: gray;
padding: 10px;
display: inline-block;
@npras
npras / gist:3683129
Created Sep 9, 2012
Stubbing out a module
View gist:3683129
# spec/spec_helper_lite.rb
def stub_module(full_name)
full_name.to_s.split(/::/).inject(Object) do |context, name|
begin
context.const_get(name)
rescue NameError
context.const_set(name, Module.new)
end
end
end
@npras
npras / Gemfile
Created Jul 12, 2012
gemfile of a gem
View Gemfile
source 'https://rubygems.org'
# Specify your gem's dependencies in boomboom.gemspec
gemspec