Skip to content

Instantly share code, notes, and snippets.

View leesharma's full-sized avatar

Lee Sharma leesharma

View GitHub Profile
@leesharma
leesharma / simple_form_materialize-sass.rb
Last active October 25, 2015 15:14 — forked from mediasota/gist:7c46c8e105acc386d62f
config/initializers/simple_form_materialize-sass.rb
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
config.error_notification_class = 'alert alert-danger'
config.button_class = 'waves-effect waves-light btn'
config.boolean_label_class = nil
config.wrappers :vertical_form, tag: 'div', class: 'input-field', error_class: 'has-error' do |b|
b.use :html5
b.use :placeholder
b.optional :maxlength
The MIT License (MIT)
Copyright (c) 2015 @leesharma and @secretofmana
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
<h1>This is a header.</h1>
<p>Hello, world!</p>
<p class="red">Hello, world</p>
<p class="orange">Hello, world</p>
<p class="yellow">Hello, world</p>
<p class="green">Hello, world</p>
<p class="blue">Hello, world</p><br/><br/>
<img src="http://raptr.com/thumb/575/323/64e0d66b31eb88762d9187b941ab1ecd/?url=b9.raptrcdn.com%2Fimg%2Fscreenshots%2Forig%2Fa5d66d9e0f7c082fd6a2cfce590a63ad.0bf3fd3d4f731d5e2c5806a41d1e3400.jpeg&crop=0" alt="Temporary Skyrim screenshot" />
{
&nbsp;&nbsp;&nbsp;&nbsp;<span class="blue">"esnext"</span>: <span class="green"><strong>true</strong></span>,
&nbsp;&nbsp;&nbsp;&nbsp;<span class="blue">"browser"</span>: <span class="green"><strong>true</strong></span>,
}

# Nam metus neque massa nunc.

Aliquam sed lectus ut mauris. Mauris viverra odio sed leo.

  • Vivamus rutrum nunc nibh, eget.
  • Etiam congue laoreet est. Quisque.
  • Curabitur nisi arcu, ullamcorper vitae.
  • Nunc erat magna, molestie in!

Sed justo quam, scelerisque nec.

@leesharma
leesharma / rescuetime-0.2.0.rb
Last active August 29, 2015 14:19
Lists all actions available in rescuetime v0.2.0
# Basics
@client = Rescuetime::Client.new
@client.api_key? #=> false
@client.valid_credentials? #=> false
@client.activities #=> Rescuetime::MissingCredentials
@client.api_key='invalid'
@client.api_key? #=> true
@client.valid_credentials? #=> false