Basic table example implementing bootstrap styles and framework with dataTables.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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: | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transition.js | |
modal.js | |
dropdown.js | |
scrollspy.js | |
tab.js | |
tooltip.js | |
popover.js | |
alert.js | |
button.js | |
collapse.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IIFE Functions in JavaScript | |
(function ($, window, document, undefined) { | |
'use strict'; | |
$(document).ready(function () { | |
// .. javascript code here ... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint browser: true, indent: 4 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function update_time(){ | |
var now = moment().format('h:mm:ss a'); | |
$('.timer').text(now); | |
setTimeout(update_time, 1000); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. 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 |
OlderNewer