Skip to content

Instantly share code, notes, and snippets.

View AdryDev92's full-sized avatar
🎯
Focusing

AdryDev92 AdryDev92

🎯
Focusing
  • Spain
  • Seville
View GitHub Profile
@AdryDev92
AdryDev92 / auto-repo.sh
Last active October 27, 2019 08:42
Self building repo into github with direct connection
#! /bin/zsh
# if you use bash, change /bin/zsh to /bin/bash
if [ "$1" = "-h" ]; then
echo "To use correctly this script, execute:
[arg1 = folder name] [arg2 = repo/github/url]
@AdryDev92
AdryDev92 / bf_dictry.py
Created September 8, 2018 00:50
Simple brute force dictionary made in python3
import os
# Se introduce la ruta para la creacion del diccionario por teclado
route = input("Introduce la ruta donde se creará el diccionario:")
# la funcion open acepta la ruta donde se va a crear el archivo
# y la W otorga permisos de escritura
file = open(route+"/dictionary.txt", "w")
# la funcion write rellena el contenido del archivo dictinary.txt
@AdryDev92
AdryDev92 / Coc.java
Created November 16, 2016 18:53
Calculadora CoC
import java.util.*;
public class Coc {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String tropa, hecho;
int total, cantidad;
String[] tropas = {"Barbaro","Arquera","Gigante","Mago","Dragón","Pekka","Esqueleto","Goblin","Globo","Sanadora"};
int[] costes = {200,400,3000,3500,33000,36000,3000,100,3500,10000};