Skip to content

Instantly share code, notes, and snippets.

View npras's full-sized avatar
😃
Coding all the time

Prasanna Natarajan npras

😃
Coding all the time
View GitHub Profile
p {
font-size: 14px;
text-align: center;
color: orange;
}
@npras
npras / Placeholder-color.markdown
Created April 2, 2014 11:53
A Pen by Prasanna N.
@npras
npras / Unselectable-Text.markdown
Created April 2, 2014 11:48
A Pen by Prasanna N.
.one {
background: green;
}
.two {
background: red;
}
div#container {
border: 2px solid black;
background: #ddd;
width: 485px;
}
p {
background: gray;
padding: 10px;
display: inline-block;
@npras
npras / gist:3683129
Created September 9, 2012 07:16
Stubbing out a module
# 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 July 12, 2012 06:42
gemfile of a gem
source 'https://rubygems.org'
# Specify your gem's dependencies in boomboom.gemspec
gemspec