Skip to content

Instantly share code, notes, and snippets.

View richfergus's full-sized avatar
🇺🇸
merica

Rich richfergus

🇺🇸
merica
View GitHub Profile
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]+'"');
@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"
[
{
"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 / 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",
[
{
"productName": "Drench Hose",
"price": "233.20",
"dilivery": "0",
"description":"Integer egestas, orci id condimentum eleifend, nibh nisi pulvinar eros, vitae ornare massa neque ut orci. Nam aliquet lectus sed odio eleifend, at iaculis dolor egestas. Nunc elementum pellentesque augue sodales porta. Etiam aliquet rutrum turpis, feugiat sodales ipsum consectetur nec.".
},
{
"productName": "Axion Eyewash",
"price": "233.20",
[
{
"grade": "O10",
"0": "0",
"2": "0",
"3": "0",
"4": "0",
"6": "0",
"8": "0",
"10": "0",
@richfergus
richfergus / index.html
Created February 22, 2018 23:21
JS Bin ES6 Exercise: rest/spread // source http://jsbin.com/racoqor
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="ES6 Exercise: rest/spread">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1>Test Results</h1>
@richfergus
richfergus / npm-using-https-for-git.sh
Created August 8, 2018 23:04 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://