Skip to content

Instantly share code, notes, and snippets.

View hypersundays's full-sized avatar

Migi D hypersundays

View GitHub Profile
.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;
},
{% 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">
{% 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>
'use strict';
angular.module('mean.tracking')
.controller('TrackingController',
['$scope',
'$stateParams',
'$location',
'$window',
'Global',
class MinimumViablePlayer
attr_accessor :x, :y
def name
# Uniquely identify your player
"Your Name Here"
end
def new_game
[
[0, 0, 5, :down],
class MinimumViablePlayer
attr_accessor :x, :y
def name
# Uniquely identify your player
"Your Name Here"
end
def new_game
[
[0, 0, 5, :down],
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.
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'