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
<nav-bar> | |
<dropdown class="visible-sm"></dropdown> | |
</nav-bar> | |
<side-bar class="col-md-3 hidden-sm"> | |
<!--- elements of the menu --> | |
</side-bar> | |
<div class="container-fluid"> | |
<div class="row"> | |
<!-- the messages --> |
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
<div> | |
<div> | |
<ul> | |
<li ng-repeat="message in ctrl.room.messages"> | |
{{message.author}}: {{ message.content }} | |
</li> | |
</ul> | |
</div> | |
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 binaryTree = new BTree(values) //values are a collection of values for the node of the binaryThree | |
var recursiveIteration = function(node, numberToSearch) { | |
if(node.value == numberToSearch) return node.position; | |
if(!!node.leftChild.exists() && !!node.rightChild.exists()) return 'Nothing matchs, check other branch' | |
recursiveIteration(node.child) | |
} | |
var searchValInTree = function (numberToSearch, tree ) { //number is the value to search | |
var top = tree.level(1) |
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
serv.match = function(collection,propertyToMatch, query) { | |
var sync; | |
/*if(propertyToMatch.indexOf(".") != -1) { | |
var properties = propertyToMatch.split("."); | |
sync = $firebase(ref.child(collection).child(properties[0]).child(properties[1]).orderByChild(properties[1]).startAt(query).endAt(query+"~")); | |
} else {*/ | |
sync = $firebase(ref.child(collection).orderByChild(propertyToMatch).startAt(query).endAt(query+"~")); | |
// } | |
var matchPromise = $q.defer(); |
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
/************** schemas/usersSchema ************* | |
var mongoose = require('mongoose'); | |
var Schema = require('mongoose').Schema; | |
var bcrypt = require('bcrypt-nodejs') | |
var util = require('util'); | |
var fashionTypes = require('../configs/referenceValues').fashionTypes; | |
function AbstractUserSchema() { | |
Schema.apply(this, arguments); |
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
// adentro de la directiva | |
$http.get(/*URL a donde pedis los datos*/) | |
.success(function(response){ | |
scope.var = response | |
}) | |
.error(function(response){ | |
/**Handle error**/ | |
}) |
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
Hello Daniel, I'm having a problem when I'm trying to run the server in my machine, I have ruby2.0.0 in Ubuntu 14.04 | |
Bundler can't install this: | |
Gem::InstallError: byebug requires Ruby version >= 2.0.0. | |
An error occurred while installing byebug (2.7.0), and Bundler cannot continue. | |
Make sure that `gem install byebug -v '2.7.0'` succeeds before bundling. | |
When I run this |
NewerOlder