Skip to content

Instantly share code, notes, and snippets.

View richfergus's full-sized avatar
🇺🇸
merica

Rich richfergus

🇺🇸
merica
View GitHub Profile
@richfergus
richfergus / USMilitaryPay_2017.json
Last active April 2, 2017 22:49
DFAS Pay Tables for 2017
[
{
"grade": "O10",
"0": "0",
"2": "0",
"3": "0",
"4": "0",
"6": "0",
"8": "0",
"10": "0",
[
{
"grade":"O10",
"0":"0",
"2":"0",
"3":"0",
"4":"0",
"6":"0",
"8":"0",
"10":"0",
[
{
"grade":"O10",
"0":"0",
"2":"0",
"3":"0",
"4":"0",
"6":"0",
"8":"0",
"10":"0",
[
{
"grade":"O10",
"0":"0",
"2":"0",
"3":"0",
"4":"0",
"6":"0",
"8":"0",
"10":"0",
@richfergus
richfergus / friends-list.directive.js
Created November 6, 2015 18:01 — forked from bennadel/friends-list.directive.js
Replacing ngInclude With Component Directives In AngularJS
angular.module( "Demo" ).directive(
"friendsList",
function() {
// Return the directive configuration.
return({
controller: "FriendsListController",
link: link,
restrict: "A",
templateUrl: "friends-list/friends-list.htm"
var myURL = 'myCfc.cfc?method=getItemsFromDb';
var app = angular.module('angularOutput',[]);
app.controller("sectionController", function($scope, $http) {
$http.get(myURL).
success(function(data, status, headers, config) {
var log = [];
var output = '';
angular.forEach(data.DATA, function(value, key) {
this.push(output +='{"value": ');
this.push(output += '"'+value[0]+'"');