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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace LibJuegoVida | |
| { | |
| /// <summary> | |
| /// Esta clase contiene métodos estáticos para realizar el "Juego de la Vida". | |
| /// Code by Silverio Martinez Garcia (https://github.com/SilverioMG). |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class PixelPerfectCamera : MonoBehaviour | |
| { | |
| public static int gameFps = 50; //Frames por segundo del juego. | |
| public static float texturesSize = 100f; //Es el valor de la propiedad 'Pixels to Units' de las imagenes que cargo en Unity. | |
| public static int myWidthResolution = 320; | |
| public static int myHeightResolution = 200; | |
| public int GameFps; |
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
| // Más información sobre este archivo y su uso: | |
| // http://wiki.unity3d.com/index.php?title=AspectRatioEnforcer | |
| //Code Modified by Silverio Martínez García. | |
| using UnityEngine; | |
| public class AspectUtility : MonoBehaviour | |
| { | |
| public float _wantedAspectRatio; //Variable para mostrar el valor en el 'Inspector' de Unity. |
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
| Protected Sub SqlReaderToExcel() | |
| Dim idCliente As Int16 = ComboProyectos.SelectedValue | |
| Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("BDConnectionString").ToString()) | |
| Dim cmd As New SqlCommand() | |
| Dim reader As SqlDataReader | |
| Dim strFileName As String = ComboProyectos.SelectedItem.ToString() | |
| Dim nombreCampos As String() = New String() {"Codigo", "Descripcion", "ReferenciaCB", "CodTipoMaterial", "Almacen", | |
| "SN", "Acronimo", "CntStock", "EnRuta", "FechaUltimaEntrada", "Proyecto"} | |
| Dim nombreCampo As String | |
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
| package com.test | |
| import org.springframework.stereotype.Component; | |
| @Component | |
| public class MyBean { | |
| private int num; | |
| public int getNum() { | |
| return num; |
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
| package com.test | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.stereotype.Component; | |
| @Configuration | |
| @ComponentScan("com.test") | |
| public class MyBeanConfig { |
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
| package com.test | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.stereotype.Component; | |
| @Configuration | |
| @ComponentScan("com.test") | |
| public class MyBeanConfig { |
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
| package com.test | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.stereotype.Component; | |
| @Component | |
| public class MyService { |
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 org.springframework.stereotype.Component; | |
| @Component | |
| public class MyBean1 { | |
| private int num; | |
| public int getNum() { | |
| return num; | |
| } |
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
| package com.test; | |
| import com.test.MyBeanConfig; | |
| import org.springframework.context.annotation.AnnotationConfigApplicationContext; | |
| import org.springframework.web.WebApplicationInitializer; | |
| import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; | |
| import org.springframework.web.filter.HiddenHttpMethodFilter; | |
| import org.springframework.web.servlet.DispatcherServlet; | |
| import javax.servlet.FilterRegistration; |
OlderNewer