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
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| sudo apt-get update | |
| sudo apt-get -y install docker-ce | |
| sudo docker pull maes95/vertx-chat | |
| sudo docker run -p 80:8000 maes95/vertx-chat |
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
| void delanteDerecha(int velocidad){ | |
| Serial.print("Delante derecha!"); | |
| controlMotor("del_der", 1, 0); | |
| controlMotor("del_izq", 1, velocidad); | |
| controlMotor("atr_der", 1, velocidad); | |
| controlMotor("atr_izq", 1, 0); | |
| } | |
| void controlMotor(String motorStr,int mdirection, int velocidad){ | |
| int IN1; |
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
| import java.util.LinkedList; | |
| import java.util.List; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| /** | |
| * | |
| * @author michel | |
| */ | |
| public class NewMain { |
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
| angular.module('myApp') | |
| .controller('FilmsController', ['$scope','$location','Film','Auth' ,function($scope, $location, Film,Auth){ | |
| $scope.allTags = []; | |
| $scope.selectedTags = []; | |
| Film.query(function(response) { | |
| $scope.films = response ? response : []; | |
| $scope.allTags = getTags(); | |
| $('#multi-select').dropdown(); |
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
| /** | |
| * PARA EJECUTAR -> node script.js > script.sql | |
| */ | |
| var films = [ | |
| { | |
| id: 1, | |
| title: "Assassin's Creed", | |
| year: 2017, | |
| country: "Francia", |
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
| function exportToPDF(title, id, css){ | |
| setTimeout(function () { | |
| var printWindow = window.open("", "", "width=1000, height=800"); | |
| printWindow.document.write('<html><head><title>' | |
| +title | |
| +'</title>' | |
| +css | |
| +'</head><body onload="window.print()">' | |
| + document.getElementById(id).innerHTML | |
| + '</body></html>'); |
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
| function exportAsJSON(fileName, myJsonObject){ | |
| var data = "text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(myJsonObject)); | |
| var a = document.createElement('a'); | |
| a.href = "data: "+data; | |
| a.download = fileName+".json"; | |
| a.click(); | |
| } | |
| var someData = { | |
| name: "John", |
NewerOlder