Skip to content

Instantly share code, notes, and snippets.

View map0logo's full-sized avatar

Francisco Palm map0logo

View GitHub Profile
@map0logo
map0logo / vigenere_cipher.scala
Created September 13, 2021 02:44
VigenereCipher encode and decode strings using the vigenère cipher #Scala #BigBookPython #qu4nt
import scala.io.StdIn.readLine
import collection.mutable.ListBuffer
object VigenereCipher extends App {
def encryptMessage(message: String, key: String): String = {
translateMessage(message, key, "encrypt")
}
def decryptMessage(message: String, key: String): String = {
translateMessage(message, key, "decrypt")
@map0logo
map0logo / bagels.scala
Last active September 7, 2021 20:28
[Bagels] #Scala #BigBookPython #qu4nt
import scala.io.StdIn.readLine
import scala.util.Random
import scala.util.control.Breaks.break
import scala.collection.mutable.ListBuffer
val NUM_DIGITS = 3
val MAX_GUESSES = 10
@main def main: Unit = {
println(s"""Bagels, a deductive logic game.
@map0logo
map0logo / affine_cipher.py
Created June 28, 2021 02:08
Affine cypher (exercism solution)
import string
from itertools import count, cycle
from math import gcd
alphabet = string.ascii_lowercase
M = len(alphabet) # Length of roman alphabet
GROUP_LENGTH = 5
sep = [''] * (GROUP_LENGTH - 1) + [' ']
def mmi(a, m):
@map0logo
map0logo / dice_simulation2.py
Created February 1, 2021 21:26
dice_simulation, pandas version
"""Simulating the sum of two dice.
Created on Fri Jan 22 19:02:16 2021
@author: spyderlieber
"""
from random import randrange
import numpy as np
import pandas as pd
@map0logo
map0logo / dice_simulation_after.py
Last active January 23, 2021 20:38
Dice simulation to show Spyder debugging tools.
"""Simulating the sum of two dice.
Created on Fri Jan 22 19:02:16 2021
@author: spyderlieber
"""
from random import randrange
import numpy as np
import matplotlib.pyplot as plt

Keybase proof

I hereby claim:

  • I am map0logo on github.
  • I am mapologo (https://keybase.io/mapologo) on keybase.
  • I have a public key ASAvC3Z9BJbqoZxJRe33VVvXLqWm-tieVIuUkmJih32E6Ao

To claim this, I am signing this object:

---

Backend (Django)

def racata(s, n):
for j in range(n-1):
print(s, end="-")
else:
print(s)
for i in range(2):
print('Y la cosa suena RA!')
for i in range(2):
@map0logo
map0logo / plan_patria.txt
Created April 15, 2017 01:28
Frequencia de Palabras en el Plan de la Patria
Plan de la Patria
Segundo Plan Socialista de Desarrollo
Económico y Social de la Nación
2013-2019
Objetivos históricos, nacionales, estratégicos
y generales
GRAN OBJETIVO HISTÓRICO N° 1
I. Defender, expandir y consolidar el bien más
preciado que hemos reconquistado después de 200
años: la independencia nacional.
@map0logo
map0logo / comunidades_tecnologicas_ve_telegram.md
Created September 16, 2016 18:53
Comunidades Tecnológicas de Venezuela en Telegram