Skip to content

Instantly share code, notes, and snippets.

View kevboutin's full-sized avatar

Kevin Boutin kevboutin

View GitHub Profile
@kevboutin
kevboutin / shop.html
Last active December 19, 2015 01:39
An example of how to handle the display of multiple products/items on a page in reponsive grid system. The media queries are not really required but they are there in case other things on the page will interact responsively.
<!DOCTYPE html>
<html>
<head>
<title>Product Shopping View Example</title>
<style>
/*
Original idea:
http://www.barrelny.com/blog/text-align-justify-and-rwd/
http://codepen.io/patrickkunka/pen/GECBF
*/
@kevboutin
kevboutin / gist:5768004
Created June 12, 2013 18:48
This Javascript will print out response headers to the console.
// https://github.com/bgrins/devtools-snippets
// Print out response headers for current URL
(function() {
var request=new XMLHttpRequest();
request.open('HEAD',window.location,false);
request.send(null);
var headers = request.getAllResponseHeaders();
@kevboutin
kevboutin / performance.conf
Last active December 15, 2015 23:29
This is a default addition to httpd.conf via Include for performance purposes.
# ----------------------------------------------------------------------
# Better website experience for IE users
# ----------------------------------------------------------------------
# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=Edge,chrome=1"
@kevboutin
kevboutin / security.conf
Created April 8, 2013 21:41
This is a default addition to httpd.conf via Include for security purposes.
# ----------------------------------------------------------------------
# A little more security
# ----------------------------------------------------------------------
# To avoid displaying the exact version number of Apache being used, add the
# following to httpd.conf (it will not work in .htaccess):
# ServerTokens Prod
# "-Indexes" will have Apache block users from browsing folders without a
# default document Usually you should leave this activated, because you
@kevboutin
kevboutin / project.xml
Created April 5, 2013 01:08
This is a custom target to use with any ant build. The idea is that this file should be included into your build script and reference the dependency target where appropriate (ex. <import file="./project.xml" /> ). This step should be used after the publish directory is loaded up with all assets and ready to be deployed/packaged. Once this target…
<target name="-tarball">
<condition property="publish.exists">
<available file="${dir.publish}" type="dir"/>
</condition>
<condition property="dist.exists">
<available file="${dir.dist}" type="dir"/>
</condition>
<if>
<equals arg1="${publish.exists}" arg2="true"/>
<then>