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
<html> | |
<head> | |
<script> | |
var numero1 = "3"; | |
var numero2 = "4"; | |
console.log("suma", suma(numero1, numero2)); | |
function suma(a, b){ | |
return a + b; | |
} |
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 express = require('express'); | |
var compression = require('compression'); | |
var proxy = require('express-http-proxy'); | |
var session = require('express-session'); | |
var app = express(); | |
var user = {uid: 'user', name: 'user A', role: '[{"portal":"worker","roles":["app_worker]}]'}; | |
var proxySetting = { |
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
Colorzilla with external picket color. |
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
.table | |
{ | |
display:table; | |
} | |
.table-row | |
{ | |
display:table-row; | |
} |
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
[How to load a file that is on the project] | |
1. Put the file at the path project/src/main/resources/myfolder/myfile.xls | |
2. Run this code: | |
import org.springframework.util.ResourceUtils; | |
File xls = ResourceUtils.getFile("classpath:myfolder/myfile.xls"); |
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
1. Clic derecho>New>Spring>Spring Maven Project>Finalizar. | |
2. Run Maven Update | |
3. Add Server | |
4. Clic derecho>Properties>Project Facets>Clic (agregar) Dynamic Web Module | |
(Para que aparezca run on server en el proyecto) | |
5. Build path java alternative jre (elige tu java) | |
6. edita el pom, verifica tipo de packaging y agrega biuld tag | |
<packaging>war</packaging> | |
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
Topics mentioned: | |
Crowdcast | |
The ServerSide.com | |
Hack.hands (marketplace to get instance codign help) | |
Hack.pledge | |
Advices for programming to improve productivity: | |
3. Pair programming | |
4. Eliminate distractions |
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
STRING TO CHAR[] | |
string tmp = "cat"; | |
char tab2[1024]; | |
strcpy(tab2, tmp.c_str()); | |
ARRAY TO SET | |
std::set<T> set(begin(array), end(array)); |
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
Recarga de la página | |
$scope.reloadState = function() { | |
$state.go($state.current, {}, {reload: true}); | |
}; |
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
//Folder del proyecto | |
git checkout develop | |
git fetch | |
git pull | |
cd docente/ | |
sudo npm install | |
//Se instalará npm sino se borra la carpeta .npm y luego se prosigue con sudo npm install | |
//Actualizar las librerías según bower.json | |
bower update |
NewerOlder