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
.factory("MessageService", function(){ | |
var ref = new Firebase("https://brilliant-fire-2745.firebaseio.com/messages"); | |
return { | |
getMessages: function($scope) { | |
var messages = []; | |
ref.on("child_added", function(snapshot) { | |
messages.push(snapshot.val()); | |
}); | |
return messages; | |
}, |
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
{% extends 'layouts/theme.html' %} | |
{% block pageheader %} | |
<h2><i class="fa fa-pencil"></i> Profile Edit <span>Subtitle goes here...</span></h2> | |
{% endblock %} | |
{% block content %} | |
<!-- Personal Info form --> | |
<div class="row"> |
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
{% extends 'layouts/theme.html' %} | |
{% block pageheader %} | |
<h2><i class="fa fa-user"></i> <a href="/"> hire fullstack </a><span> Find your next Fullstack developer... </span></h2> | |
<div class="breadcrumb-wrapper"> | |
<span class="label">You are here:</span> | |
<ol class="breadcrumb"> | |
<li><a href="/">Home</a></li> | |
<li><a href="/interested">Favorites</a></li> | |
<li><a href="/developers">Search</a></li> |
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('mean.tracking') | |
.controller('TrackingController', | |
['$scope', | |
'$stateParams', | |
'$location', | |
'$window', | |
'Global', |
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
class MinimumViablePlayer | |
attr_accessor :x, :y | |
def name | |
# Uniquely identify your player | |
"Your Name Here" | |
end | |
def new_game | |
[ | |
[0, 0, 5, :down], |
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
class MinimumViablePlayer | |
attr_accessor :x, :y | |
def name | |
# Uniquely identify your player | |
"Your Name Here" | |
end | |
def new_game | |
[ | |
[0, 0, 5, :down], |
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
class MinimumViablePlayer | |
def name | |
# Uniquely identify your player | |
"Your Name Here" | |
end | |
def new_game | |
# return an array of 5 arrays containing | |
# [x,y, length, orientation] | |
# e.g. |
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
def translate(phrase) | |
pigPhrase = [] | |
phrase.split(' ').each {|word|pigPhrase.push(translateWord(word))} | |
pigPhrase.join(' ') | |
end | |
def translateWord(word) | |
vowels = ['a', 'e', 'i', 'o', 'u'] | |
if vowels.include? word[0,1] | |
return word+'ay' | |
elsif word[0,1] == 'q' |