Skip to content

Instantly share code, notes, and snippets.

View EmmaG2's full-sized avatar
🍬
I'm going to upload things in python (or java)

Emma Granados EmmaG2

🍬
I'm going to upload things in python (or java)
View GitHub Profile
@EmmaG2
EmmaG2 / file.py
Last active December 4, 2023 15:56
import random
n_random = random.randint(1, 250)
times = 0
list = []
n = 0
while n != n_random and times < 13:
n = int(input("Ingresa el número: "))
list.append(n)
@EmmaG2
EmmaG2 / Examen.java
Created October 12, 2023 13:42
Examen de fundamentos de programación del día 12/10/2023
import java.util.Scanner;
public class Examen {
public static void main(String[] args) {
int t = 3, opc, salary;
String name, workerType;
Scanner sc = new Scanner(System.in);
while (t-->0) {
System.out.println("""
@EmmaG2
EmmaG2 / grafo_lista_adyacencia.cpp
Created September 7, 2023 14:33
Esta es una implementación de grafos con lista de adyacencia en el lenguaje C++
#include <vector>
#include <iostream>
#define vii vector< vector<int> >
using namespace std;
void create_graph(int nodes, vii &graph)
{
for (int i = 0; i < nodes; i++)
@EmmaG2
EmmaG2 / README.md
Created May 14, 2023 01:31
conventional commits config
npm install --save-dev @commitlint/cli @commitlint/config-conventional

commitlint.config.js

module.exports = {
  extends: ['@commitlint/config-conventional']
}
@EmmaG2
EmmaG2 / .prettierrc
Created April 14, 2023 21:41
La configuración de prettier que uso para mis proyectos de javascript, front end y back end.
{
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
@EmmaG2
EmmaG2 / cptemplate.cpp
Last active April 13, 2023 17:00
C++ template for competitive programming.
//
// Created by thisismyemm4 on 13/04/23.
//
#include <bits/stdc++.h>
// ─╔╗╔╗────────────────╔═══╗─────╔═══╦═╗╔═╗╔═╗
// ╔╝╚╣║────────────────║╔══╝─────║╔═╗║║╚╝║║║╔╝
// ╚╗╔╣╚═╦╦══╦╦══╦╗╔╦╗─╔╣╚══╦╗╔╦╗╔╣║─║║╔╗╔╗╠╝╚╦══╗
// ─║║║╔╗╠╣══╬╣══╣╚╝║║─║║╔══╣╚╝║╚╝║╚═╝║║║║║╠╗╔╣══╣
// ─║╚╣║║║╠══║╠══║║║║╚═╝║╚══╣║║║║║║╔═╗║║║║║║║║╠══║
import java.io.BufferedInputStream;
import java.io.PrintWriter;
public class Tecno02 {
public static void main(String[] args) throws Exception {
PrintWriter pw = new PrintWriter(System.out);
FastScanner sc = new FastScanner();
int d = 0, r = 0;
int f = sc.nextInt();
package com.ob.restapp.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import pathlib
def rename_file(book_name, new_book_name):
path = pathlib.Path('.')
for file in path.iterdir():
if file.name.__contains__(book_name):
try:
new_file_name = f'{new_book_name} {file.name[-8:-5]}{file.suffix}'
#SingleInstance, Force
;#IfWinActive ahk_exe ProPresenter.exe
SendMode Input
SetWorkingDir, %A_ScriptDir%
; AT
::gn::Génesis
::ex::Éxodo
::nm::Números
::lv::Levítico
::dt::Deuteronomio