Skip to content

Instantly share code, notes, and snippets.

View quickstep25's full-sized avatar
🖥️

Doug Hill quickstep25

🖥️
View GitHub Profile
@quickstep25
quickstep25 / html5_ie8_starter_template
Last active June 2, 2020 18:29
HTML5 Responsive Starter Template - IE8 Compliant
<!doctype html>
<!--doctype must be declared for IE AND file header documentation must be after the doctype otherwise IE will enter quirks mode and fail to respond to IE work arounds for the bootstrap framework-->
<!--
DOC TYPE: HTML
TITLE:
USAGE:
CREATION DATE:
AUTHOR:
ID:
-->
@quickstep25
quickstep25 / BOOTSTRAP3-JQUERY-PLUGIN ORDER
Last active June 2, 2020 18:29
List of jQuery plug-ins used by Bootstrap 3 in the correct order when compiling a .js file with all of them included.
transition.js
modal.js
dropdown.js
scrollspy.js
tab.js
tooltip.js
popover.js
alert.js
button.js
collapse.js
@quickstep25
quickstep25 / DataTables---Bootstrap-Compatability.markdown
Last active June 2, 2020 18:29
DataTables - Bootstrap Compatibility - Demo on CodePen

DataTables - Bootstrap Compatability

Basic table example implementing bootstrap styles and framework with dataTables.

A Pen by Doug Hill on CodePen.

License.

@quickstep25
quickstep25 / htaccess-cache-config
Last active June 2, 2020 18:28
Enable and Disable Browser Caching with .htaccess
# Enable and Disable Browser Caching with .htaccess
## Enable Examples
### 1 MONTH for static assets
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
### 1 DAY for rss feeds and robots
@quickstep25
quickstep25 / update-forked-git
Last active August 29, 2015 14:05
How to Update Forked Repository
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
@quickstep25
quickstep25 / JavaScript-Global-Vars-Template.js
Last active August 29, 2015 14:05
JavaScript - IIFE TEMPLATE - when minified the code variables in scope will be minimized as well. - ref: http://toddmotto.com/what-function-window-document-undefined-iife-really-means/
// IIFE Functions in JavaScript
(function ($, window, document, undefined) {
'use strict';
$(document).ready(function () {
// .. javascript code here ...
});
@quickstep25
quickstep25 / jslint-browser.js
Created August 16, 2014 00:32
Global Scope for Browsers
/*jslint browser: true, indent: 4 */
@quickstep25
quickstep25 / update_time.js
Created August 20, 2014 21:13
Moment - Update Time
(function update_time(){
var now = moment().format('h:mm:ss a');
$('.timer').text(now);
setTimeout(update_time, 1000);
})();
@quickstep25
quickstep25 / months-abbr-array.json
Last active February 7, 2018 18:57
Months - ABBR - JSON
["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
@quickstep25
quickstep25 / dwcc-re-cheatsheet.txt
Last active August 29, 2015 14:07
Dreamweaver - Regex - Cheatsheet
. Any single character, except a newline
\d Any digit character (0-9)
\D Any non-digit character—in other words, anything except 0-9
\w Any alphanumeric character or the underscore
\W Any character, except an alphanumeric character or the underscore
\s Any white-space character, including space, tab, form feed, or line feed
\S Any character, except a white-space character
\f A form feed character
\n A line feed character
\r A carriage return character