Skip to content

Instantly share code, notes, and snippets.

View HiroNakamura's full-sized avatar
🏠
Working from home

Developer of interesting things HiroNakamura

🏠
Working from home
View GitHub Profile
@HiroNakamura
HiroNakamura / PersonasInfo.txt
Last active January 30, 2023 00:52
Programación en lenguaje C, 2da parte
HERIBERTO ENRIQUEZ LARA
LAURA ESQUIVEL LOPEZ
JIMENA SANCHEZ PEREZ
ANA LAURA BERRIOZABAL YUNEZ
MILTON VERA TORRES
JUAN CARLOS ROMERO VARGAS
@HiroNakamura
HiroNakamura / clases.php
Last active January 1, 2023 03:57
PHP en ejemplos
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Clases en PHP</title>
</head>
<body>
<h1>
<?php
@HiroNakamura
HiroNakamura / Category.java
Last active January 1, 2023 01:09
PostgreSQL en ejemplos
package com.consumo.api.entity;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
//import jakarta.persistence.OneToMany;
import jakarta.persistence.Column;
import jakarta.persistence.ElementCollection;
import lombok.AllArgsConstructor;
@HiroNakamura
HiroNakamura / categorias.json
Last active December 29, 2022 03:48
Ejemplos JSON
[
{
"categoryId": "Categoria 1",
"description": "Primera categoria",
"elements": [
"C-F1",
"C-T3",
"C-O3"
]
},
@HiroNakamura
HiroNakamura / Consumidor.java
Last active October 16, 2022 19:56
Spring Boot - Ejemplos de RestTemplate
package com.util;
import java.nio.charset.Charset;
import org.apache.tomcat.util.codec.binary.Base64;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.util.LinkedMultiValueMap;
@HiroNakamura
HiroNakamura / Music-Suggestion.pl
Last active April 27, 2024 19:39
Aprendiendo Prolog
% Visto en: https://gist.github.com/thechaudharysab/aa2e57d4dcb37d113f675cf9c47fb94e#file-music-suggestion-pl
% is used to add comments in code in prolog language
suggest(S) :- write('What is your personality type?: '),read(P),write('How is your mood?: '),read(M), song(S,_,M,P).
%Happy_Mood
song('https://www.youtube.com/watch?v=c8YIlU_30Kk',jazz,M,P):- M = happy ,(P= (entj) ; P=(enfj) ; P=(enfp)),!.
song('https://www.youtube.com/watch?v=SsZRci3sA4I',classical,M,P):- M = happy ,(P= (entj) ; P=(intj) ; P=(entp) ; P=(infj)),!.
song('https://www.youtube.com/watch?v=XYk2kt8K6E0',electronica,M,P):- M = happy ,(P= (entj) ; P=(estp) ; P=(enfp)),!.
song('https://www.youtube.com/watch?v=VguED7BfpgU',metal,M,P):- M = happy ,(P= (intj) ; P=(istp) ; P=(intp) ; P=(estp)),!.
@HiroNakamura
HiroNakamura / Program.cs
Last active May 15, 2022 14:23
Programando en C#
using System;
public class Program
{
public static int subAlg(int a, int b)
{
int temp=0;
while(a > b)
{
@HiroNakamura
HiroNakamura / Redux
Created November 14, 2021 17:23 — forked from ChuckJonas/Redux
React React
[react-redux-typescript-guide](https://github.com/piotrwitek/react-redux-typescript-guide)
[FAQ](http://redux.js.org/docs/FAQ.html)
[Redux Actions in typescript](https://spin.atomicobject.com/2017/07/24/redux-action-pattern-typescript/)
```typescript
export enum TypeKeys {
INC = 'INC',
DEC = 'DEC',
OTHER_ACTION = '__any_other_action_type__'
}
@HiroNakamura
HiroNakamura / MyBase.cs
Last active September 13, 2021 00:17
Dotnet para principiantes
namespace auditor
{
public class MyBase
{
//protected members.
protected int _intValue { get; set; }
protected string _stringValue { get; set; }
//Base Constructor
public MyBase(int intParam, string strParam)
@HiroNakamura
HiroNakamura / README.md
Last active September 12, 2021 14:22
Struts2 for beginners

Struts2

Programando App Web con Struts2

Apache Struts es un marco MVC gratuito y de código abierto para crear aplicaciones web Java elegantes y modernas. Favorece la convención sobre la configuración, es extensible mediante una arquitectura de complementos y se envía con complementos para admitir REST, AJAX y JSON.

Crear proyecto con Maven (blank)