This file contains hidden or 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
'use strict'; | |
// server-side dependencies | |
var express = require('express'), | |
// mongodb orm | |
mongoose = require('mongoose'), | |
// parse response content | |
bodyParser = require('body-parser'), | |
// parse cookie content | |
cookieParser = require('cookie-parser'), |
This file contains hidden or 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
var LibraryName = (function () { | |
var LibraryName = function LibraryName() { | |
} | |
// Todd Moto's forEach method | |
LibraryName.forEach = function forEach(array, callback, scope) { | |
for (var i = 0; i < array.length; i++) { | |
callback.call(scope, i, array[i]); // passes back stuff we need | |
} |
This file contains hidden or 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> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
/* fab */ | |
.fab { | |
height: 56px; | |
width: 56px; |
This file contains hidden or 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> | |
<html> | |
<head></head> | |
<body> | |
<ol ng-repeat="day in root"> | |
<li>{{ day.name }} | |
<ol ng-repeat="category in day.categories"> | |
<li>{{ category.name }} |
This file contains hidden or 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
// forEach method, could be shipped as part of an Object Literal/Module | |
var forEach = function (array, callback, scope) { | |
for (var i = 0; i < array.length; i++) { | |
callback.call(scope, i, array[i]); // passes back stuff we need | |
} | |
}; | |
// language-toggle | |
var activateEnglish = function () { |
This file contains hidden or 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
'use strict'; | |
angular.module('appName.itemService', []) | |
.factory('Items', ['$resource', function($resource) { | |
return $resource('http://localhost:1337/api/v1/items/:id', {}, { | |
delete: {method: 'DELETE'} | |
}); | |
}]); |
This file contains hidden or 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
'use strict'; | |
/* Controllers */ | |
angular.module('zm.controllers', []) | |
.controller('homeCtrl', ['$scope', function($scope) { | |
}]) | |
.controller('journalCtrl', ['$scope', 'recentPostsFactory', function($scope, recentPostsFactory) { |
This file contains hidden or 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> | |
<html> | |
<head> | |
<title>Zach Moreno Beta</title> | |
<!-- web fonts --> | |
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,400italic,300italic,100italic,500italic' rel='stylesheet' type='text/css'> | |
<!-- css --> | |
<link rel="stylesheet" type="text/css" href="style.css"> |
This file contains hidden or 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
<ul> | |
<?php | |
$topThreePostsArgs = array( | |
'post_type' => 'coastal_news' | |
); | |
// Query the Coastal News post type --> | |
$my_query = new WP_Query( $topThreePostsArgs ); | |
// While there are Coastal News items, loop through them as list items | |
while ($my_query->have_posts()) : $my_query->the_post(); | |
// Don't show duplicates |
This file contains hidden or 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
ol.start { | |
counter-reset: mainSection; | |
} | |
ol.split { | |
list-style-type: none; | |
} | |
ol.split li:before { | |
counter-increment: mainSection; |