Skip to content

Instantly share code, notes, and snippets.

@XixoWreden
XixoWreden / ApisConPatronDiseñoInterfazFluida.java
Created April 3, 2019 23:15
Se agrega un ejemplo de las APIs mismas de java que reutilzan el patron de diseño Interfaz Fluida
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
/**
* Alguno de los ejemplos que tienen implementado el Patron de Diseño - Fluid Interface
*/
public class TestApisWithFluidInterface {
public static void main(String[] args) {
//Una API que tienen implementado el patrón es StringBuilder
@XixoWreden
XixoWreden / Crear-nuevo-clase-patron-interfaz-fluida.java
Created April 8, 2019 16:55
Implementación del Patron de Diseño Interfaz Fluida con ejemplo para observar lo facil de su uso.
/*
* CLASE MAIN PARA PROBAR EL Java Fluent Interface
* QUE NOS PERMITIRA TRABAJR UN POCO MAS FLUIDO CUANDO PROGRAMAMOS
*/
public class TestPatterns {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
@XixoWreden
XixoWreden / Simulador1-Question1.java
Created April 27, 2019 05:01
Problema de Herencia con la clase
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.xixo.simulador1;
/**
* Dado las siguientes clases
* @author neroxixo
@XixoWreden
XixoWreden / Simulador1-Question2.java
Last active May 2, 2019 14:26
Este problema se genera por la linea1, ya qie le falta de heredar el constructor
/**
* Dado el siguiente codigo.
* @author neroxixo
*/
class Vehicle{
String type = "4W";
int maxSpeed = 100;
public Vehicle(String type, int maxSpeed) {
this.type = type;
@XixoWreden
XixoWreden / pom-spring-core.xml
Created July 21, 2019 21:39
Se que trato de definir aquí es que dependencias baja cuando se agrega en especifico el artifact "spring-core"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mx.com.xixo</groupId>
<artifactId>spring-interprete-demo-filosofia</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-framework-inyeccion-dependencia</name>
<description>Purebas de Spring</description>
@XixoWreden
XixoWreden / pom-spring-context.xml
Created July 21, 2019 21:42
Se que trato de definir aquí es que dependencias baja cuando se agrega en especifico el artifact "spring-context"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mx.com.xixo</groupId>
<artifactId>spring-interprete-demo-filosofia</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-framework-inyeccion-dependencia</name>
<description>Purebas de Spring</description>
@XixoWreden
XixoWreden / pom-spring-context-support.xml
Created July 21, 2019 21:45
Se que trato de definir aquí es que dependencias baja cuando se agrega en especifico el artifact "spring-context-support"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mx.com.xixo</groupId>
<artifactId>spring-interprete-demo-filosofia</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-framework-inyeccion-dependencia</name>
<description>Purebas de Spring</description>
@XixoWreden
XixoWreden / pom.xml
Created January 13, 2020 17:37
Pom detallado sencillo y sin dependencias de ejemplo.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xixo.testing</groupId>
<artifactId>simple-maven-project-for-all-testing</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Simple Maven Project for Testing</name>
<description>Testing all question</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@XixoWreden
XixoWreden / .gitignore
Created April 7, 2020 19:57
files ignore for nodejs vscode
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
@XixoWreden
XixoWreden / INSTALL_NODEMON_NODEJS.sh
Created April 8, 2020 10:18
AGREGAR LA DEPENDENCIA Y CORRER NODEMON, PARA NO RECARGAR A CADA RATO
#NODEMON-NODEJS
#INSTALAR NODEMON, PARA NO ESTAR CORRIENDO O DETENIENDO LA APLICACIÓN Y RECARGANDO DE NUEVO
#INSTALAR COMO DEPENDENCIA DE PRODUCCIÓN EN TU PROYECTO
npm i nodemon
#INSTALAR COMO DEPENDENCIA DE DESARROLLO EN TU PROYECTO
npm i -D nodemon
#SE CREA UNA NUEVA DEPENDECIA EN EL package.json