Skip to content

Instantly share code, notes, and snippets.

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

Leo M. Peters leompeters

😎
...
View GitHub Profile
@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 / .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 / 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 / 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 / _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 / dynamic-row
Last active August 29, 2015 14:28
Add and remove row dynamically.
Add and remove row dynamically.
@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 / ExampleFeature-Cucumber.feature
Last active May 7, 2020 18:29
Cucumber example feature in Gherkin.
# Cucumber example feature in Gherkin.
Feature: Example feature
As an user of Cucumber.js
I want to have documentation on Cucumber
So that I can concentrate on building awesome applications
Scenario: Reading documentation
Given I am on the Cucumber.js GitHub repository
When I go to the README file
// Example got on LinkedIn (https://www.linkedin.com/groups/3242849/3242849-6143986010788216834):
// https://github.com/glondon/signup/blob/master/gdform.php
<?php
if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest')
exit(header('Location: http://signupandmakemoney.com/info/ajax-error.html'));
session_start();
/* Don't need this anymore...
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET"){
$query_vars = $_GET;
@leompeters
leompeters / rubymine-gitflow-init-config-error
Last active September 7, 2016 15:36
Configuration PREFIX plugin error on initialize the git-flow in a repository on Rubymine (in `/.git/config`).
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = https://github.com/fanhero/super-admin-portal.git
fetch = +refs/heads/*:refs/remotes/origin/*