Skip to content

Instantly share code, notes, and snippets.

View jbstowe's full-sized avatar

Joey Stowe jbstowe

  • University of Alabama
  • Tuscaloosa, Al
View GitHub Profile
<html ng-app="simpleReport">
<head>
<meta charset="utf-8">
<title>Quick and Dirty angular table</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
</head>
<body>
<div ng-controller="ReportController">
@jbstowe
jbstowe / gulpfile.js
Created February 19, 2014 03:20
Default gulpfile for less
var gulp = require('gulp');
var gutil = require('gulp-util');
var notify = require('gulp-notify');
var less = require('gulp-less');
var autoprefix = require('gulp-autoprefixer');
var minifyCSS = require('gulp-minify-css')
//var exec = require('child_process').exec;
//var sys = require('sys');
@jbstowe
jbstowe / CSS - Normalize
Created August 8, 2013 19:25
CSS - Normalize
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@jbstowe
jbstowe / JS-jQuery get
Created August 2, 2013 16:44
JS-jQuery get
$.get('ajax/test.html', function(data) {
$('.result').html(data);
alert('Load was performed.');
});
@jbstowe
jbstowe / JS-jQuery 1.9.1 min
Created August 2, 2013 16:41
JS-jQuery 1.9.1
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jqu
@jbstowe
jbstowe / JS-Module Template
Created August 2, 2013 16:36
JS-Module Template
var s,
Widget= {
settings: {
selector:$('.selector')
},
init: function() {
s = this.settings;
this.bindUIActions();
@jbstowe
jbstowe / CSS-Clearfix
Created August 2, 2013 16:35
CSS Clearfix
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
/* For IE 6/7 only */
.clearfix {
@jbstowe
jbstowe / CSS-Overflowed Text Ellipsis
Created August 2, 2013 16:34
CSS for adding ellipsis to overflowed text
.truncate {
width: 250px; /* Or whatever you ned it to be */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@jbstowe
jbstowe / jquery document ready
Created December 20, 2012 20:49
JS-jquery document ready
$(document).ready(function() {
// put all your jQuery goodness in here.
});
@jbstowe
jbstowe / jqm
Created October 5, 2012 14:32
jQuery Mobile Basic Boilerplate
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>