This file contains 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
// get gulp and the plugins we need for it | |
var gulp = require('gulp'); | |
var scss = require('gulp-sass'); | |
var bourbon = require('node-bourbon').includePaths; | |
var webserver = require('gulp-webserver'); | |
var jshint = require('gulp-jshint'); | |
// setup our Sass compilation task | |
gulp.task('scss', function() { | |
return gulp.src('styles/ag.scss') |
This file contains 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
@import "bourbon"; | |
.profile-pic-transition.ng-hide-remove.ng-hide-remove-active { | |
@include animation(flyIn 3s); | |
} | |
@include keyframes(flyIn) { | |
0% { | |
opacity: 0; |
This file contains 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
{ | |
"name": "andrew-golightly", | |
"version": "0.1.3", | |
"author": "Andrew Golightly <support@andrewgolightly.com>", | |
"description": "Andrew Golightly's landingpage", | |
"homepage": "http://www.andrewgolightly.com", | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/magician11/ag-landingpage.git" | |
}, |
This file contains 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 autoprefix = require('gulp-autoprefixer'); | |
gulp.task('scss', function() { | |
return gulp.src(appFiles.scss) | |
.pipe(scss({ | |
errLogToConsole: true | |
})) | |
.pipe(autoprefix()) | |
.pipe(minifyCSS()) |
This file contains 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
(function() { | |
"use strict"; | |
var agApp = angular.module('agApp'); | |
agApp.factory('WordPressFeed', function($http) { | |
function getLatestPosts(wpWebsite, numPosts, callback) { |
This file contains 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
(function() { | |
"use strict"; | |
var agApp = angular.module('agApp'); | |
agApp.controller('MainCtrl', function(WordPressFeed) { | |
var vm = this; |
This file contains 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
<!-- Recent articles (using Zurb's Foundation framework) --> | |
<section class="row"> | |
<h3 class="ag-section-heading"><i class="fa fa-pencil"></i> Recent articles</h3> | |
<ul class="medium-block-grid-3"> | |
<li ng-repeat="wpArticle in ag.wpFeed"> | |
<h4>{{wpArticle.title}}</h4> | |
<p>{{wpArticle.contentSnippet}} <a ng-href="{{wpArticle.link}}">read more</a></p> | |
</li> |
This file contains 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 id="artists" class="medium-block-grid-4"> | |
{% for artist in blog.articles %} | |
{% capture artist-name %}{{ artist.title | downcase }}{% endcapture %} | |
<li class="{{artist-name}}"> | |
<a href="{{ artist.url }}"> | |
<div class="artist-excerpt">{{ artist.excerpt }}</div> | |
<div class="artist-name">{{ artist.title }}</div> | |
<div class="country">{{ artist.metafields.global.country }}</div> | |
</a> | |
</li> |
This file contains 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
<section class="slider"> | |
<img src="andrew-and-artist.jpg" onerror='this.src="./andrew-and-artist.jpg"' /> | |
<nav class="slider-nav"> | |
<ul> | |
<li class="arrow"> | |
<a href="#"><i class="fa fa-long-arrow-left"></i></a> | |
</li> | |
<li class="arrow"> | |
<a href="#"><i class="fa fa-long-arrow-right"></i></a> | |
</li> |
This file contains 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
(function() { | |
"use strict"; | |
var fs = require('fs'); | |
var firebase = require("firebase"); | |
var ref = new firebase("https://xyz.firebaseio.com/baptiste"); | |
var request = require('request').defaults({ encoding: null }); | |
// Grab all teacher data | |
var obj = JSON.parse(fs.readFileSync('teachers-part1.json', 'utf8')); |