Skip to content

Instantly share code, notes, and snippets.

Avatar
🕹️
https://www.twitch.tv/kiramishima

Paul Arizpe kiramishima

🕹️
https://www.twitch.tv/kiramishima
View GitHub Profile
@kiramishima
kiramishima / App.java
Last active Nov 17, 2021
Guess Number
View App.java
/*
* Author: Paul Arizpe
*/
import java.util.Scanner;
public class App {
public static void main(String[] args) throws Exception {
int x = (int)(100 * Math.random());
boolean isFound = false;
int tries = 0;
@kiramishima
kiramishima / ex2.py
Created Sep 20, 2021
Mi solucion del 2
View ex2.py
def MaxProfit(priceAsString):
list = [int(i) for i in priceAsString.split(',')]
print(list)
minVal = min(list)
indexMinVal = list.index(minVal)
if indexMinVal < len(list):
list2 = list[indexMinVal::]
if len(list2) == 1:
return 0
@kiramishima
kiramishima / ex1.py
Created Sep 20, 2021
Mi solution ejercicio 1
View ex1.py
import re
def MaxWord(parrafo, palabrasNoValidas):
parrafo2 = parrafo.lower()
expression = r'\w+'
res = re.findall(expression, parrafo2)
ocurrences = {}
for word in res:
if word not in palabrasNoValidas:
View global_temperature.csv
year degrees_celsius
1850 7.74
1851 8.09
1852 7.97
1853 7.93
1854 8.19
1855 8.12
1856 7.9
1857 7.71
1858 8.13
View intro_fsharp_jupyter_nugets.ipybn
#r "nuget:FSharp.Data, 3.3.3"
#r "nuget:Deedle, 2.1.2"
#r "nuget:XPlot.GoogleCharts, 2.1.2"
#r "nuget:XPlot.Plotly, 3.0.1"
View libros_calculo.yaml
- Title: Algunos ejercicios de Ampliación de Cálculo
Autor: Pedro Fortuny Ayuso
Link: https://openlibra.com/es/book/algunos-ejercicios-de-ampliacion-de-calculo
- Title: El tablero medieval de cálculo y las operaciones con números romanos: estudio histórico y pedagógico
Autor: José María Núñez
Link: https://openlibra.com/es/book/el-tablero-medieval-de-calculo-y-las-operaciones-con-numeros-romanos-estudio-historico-y-pedagogico
- Title: Apuntes de cálculo numérico
Autor: Sebastián A. Hernández
View Step2.vue
<template>
<v-container class="grey lighten-5">
<v-subheader>
<b>Step 2:</b> Map Fields
<br>
<div class="text-subtitle-2 text-left ma-2">Map the fields in your csv to Autopilot's fields.</div>
</v-subheader>
<form action="" method="POST" @submit="sendMappingField">
<v-row no-gutters>
<v-col sm="12">
View intro_fsharp_bloque_2
open Deedle
let globalTemp = Frame.ReadCsv("./_datasets/global_temperature.csv")
// Para mostrar el contenido hacemos uso de Print
globalTemp.Print()
// Para tomar los primeros 3 elementos del Dataframe, usaremos Rows.Beetwen
globalTemp.Rows.Between(0, 3).Print()
View intro_fsharp_bloque_1
printfn "Hello World from F#!\n"
// Declaracion de variables
let a = 5
let b = 5
// Suma
let sum = a + b
printf "%A\n" sum
// Sustracción
let sus = a - 3
@kiramishima
kiramishima / main.fs
Created Mar 7, 2020
HackerRank F# Base para los ejercicios
View main.fs
[<EntryPoint>]
let main argv =
let n = int <| Console.ReadLine()
let ar = Console.ReadLine().Split(' ') |> Array.map (fun x -> x |> Convert.ToInt32)
// you code
0