Skip to content

Instantly share code, notes, and snippets.

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

Dave Roman MrDave1999

🏠
Working from home
View GitHub Profile
@Edmartt
Edmartt / diagonaldifference.c
Last active August 26, 2021 22:05
find diagonal difference
#include <stdio.h>
int diagonalDifference(int arr[3][3]);
int main(int argc, char* argv[]){
int arr[3][3] ={{1,2,3}, {4,5,6},{7,8,9}};
printf("Resultado: %d\n", diagonalDifference(arr));
return 0;
}
int diagonalDifference(int arr[3][3]){
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active May 23, 2024 15:32
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@Ts-Pytham
Ts-Pytham / Fibonacci.cs
Created December 22, 2020 19:27
Sucesión de Fibonacci
using System;
using System.Numerics;
namespace Serie_de_Fibonacci
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Ingrese la posición para hallar el número de la sucesión de Fibonacci: ");
@Edmartt
Edmartt / ROT.c
Last active August 23, 2020 01:56
Cifrado de César sin caracteres extraños.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX 100;
void cifrar(char*,int);
void mostrarMenu();
int main(int argc, char **argv)
{
@Roberto24p
Roberto24p / estilos.css
Created December 27, 2019 02:45
Calculadora hecha con html, css y javascript - Practica
table,td{
border: 1px solid rgb(0, 110, 255);
padding: 25px;
background: rgb(206, 201, 201);
border-radius: 5px;
}
table{
/*border-collapse: collapse;*/
@Roberto24p
Roberto24p / piezaCa.java
Last active November 12, 2019 02:33
Un código relativamente sencillo que te pide las coordenas en X y en Y. Muestra por pantalla los posibles movimiento de la pieza caballo del juego ajedrez, se resolvio de 2 modos, iterativo y recursivo. Cualquier recomendación o bug, me serviria para mejorar.
import java.io.*;
public class piezaCa{
private int movX;
private int movY;
private String cadena;
private String cadenaR;
public piezaCa(int movX, int movY){
this.movX = movX;
this.movY = movY;
@Guiller1999
Guiller1999 / Ejecutable.java
Created November 10, 2019 03:07
Programa que imprime los posibles movimientos que puede realizar la pieza de ajedrez caballo.
import java.io.*;
// Programa que imprime las posiciones en las que se puede mover la pieza de ajedrez Caballo dentro de un tablero de 8x8
public class Ejecutable{
public static void main(String args[]){
int posX = 0, posY = 0, contMov = 0;
boolean flag;
@Ts-Pytham
Ts-Pytham / Serie de Fibonacci.py
Last active September 17, 2019 03:14
Sucesión de Fibonacci en C++/Python
prim = 1
ant = 0
c = "*"
d = 0
r = int(input("Ingrese el rango a terminar para la sucesión de Fibonacci."))
for i in range(0,r):
if d >=1 and d<=4:
c+="*"
else:
d = 0
@Roberto24p
Roberto24p / Arreglo_promedio.c
Last active September 6, 2019 18:15
Código para sacar promedio de cada una de las filas de un arreglo 5x5 y el promedio de total
#include <stdio.h>
void ingresar(float [][5], int , float [], int );
float promediosfilas(float [], int);
void presentar( float);
int main()
{
float arreglo[5][5]={{'\0'}}, prom, promedio[5]={'\0'};
using Proyecto_Segundo_Parcial.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Proyecto_Segundo_Parcial.Control
{
class AdmBoletos