Skip to content

Instantly share code, notes, and snippets.

View leompeters's full-sized avatar
😎
...

Leo M. Peters leompeters

😎
...
View GitHub Profile
@leompeters
leompeters / git_patterns.md
Last active May 7, 2020 18:44
Some rules to use on your git commit messages.

Git Patterns

Some rules to use on your git commit messages.

Commit Messages:

[jira issue] #[action] : [issue description]

Actions:

@leompeters
leompeters / dynamic-row
Last active August 29, 2015 14:28
Add and remove row dynamically.
Add and remove row dynamically.
@leompeters
leompeters / _shim.html
Created June 2, 2015 16:34
Polyfill for CSS3 Media Queries Respond.js, HTML 5 shim which enables use of HTML5 elements, and a proper IE <meta> tag in the HTML head to ensure that IE is not running in compatibility mode.
<head>
...
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
@leompeters
leompeters / file_input_button.css
Created June 2, 2015 16:22
File input button component problem...Whipping File Inputs Into Shape with Bootstrap 3...
.btn-file {
position: relative;
overflow: hidden;
}
.btn-file input[type=file] {
position: absolute;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
@leompeters
leompeters / full-images.css
Created March 5, 2015 18:50
Full expand images on web page.
body {
margin: 0;
}
#full > img {
display: block;
float: left;
width: 50vw;
height: 50vh;
object-fit: cover;
@leompeters
leompeters / .belanton_rubymine_livetemplates
Last active March 7, 2019 20:18
RubyMine Live Templates for commented items at Belanton Team.
You can use these settings on your RubyMine [http://rubymine.org]. Here are some RubyMine Live Templates.
@leompeters
leompeters / activities_timeline_twb23.html
Created October 9, 2014 18:19
Activities Timeline with Twitter Bootstrap 2.3
<table>
<tr>
<td valign="top">2/4/2013</td>
<td>
<dl class="dl-activities">
<dt>
<button type="button" class="btn btn-mini btn-success disabled" disabled="disabled">
<i class="icon-plus icon-white"></i>
</button>
</dt>
@leompeters
leompeters / bootstrap-typeahead-combobox.html.erb
Last active May 7, 2020 19:22
Choose how input to use with bootstrap-combobox.
<!-- Choose how input to use with bootstrap-combobox. -->
<%= f.input :parent_name, label: false, hint: false do %>
<div class="input-append input-block-level">
<%= f.input_field :parent_name, as: :string, placeholder: false, disabled: true,
autocomplete: "off", data: { provide: "typeahead" } %>
<span id="tog" class="add-on typeahead-toggle">
<span class="caret"></span>
</span>
</div> <!-- /.input-append -->
@leompeters
leompeters / disqus.css
Created August 26, 2014 15:16
Custom CSS Code for Disqus Comment System
#dsq-comments-title h4 {
color:#333;
}
#disqus_thread {
padding:12px;
margin-bottom:-10px;
}
#disqus_thread h4 {
color:#333;
font-family: Helvetica, sans-serif;
@leompeters
leompeters / rails_cache
Last active August 29, 2015 14:05
Action and Fragment caching supported by Rails.
Action and Fragment caching supported by Rails.cache, working like caching in HTML templates: