This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Muertes por comuna, mes y año en Chile 2000-2020" | |
output: html_notebook | |
--- | |
```{r} | |
library(tidyverse) | |
``` | |
# Cargar datos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import telepot | |
from pprint import pprint | |
import time | |
import random | |
import string | |
import sys | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import telepot | |
import thread | |
from random import random, randint | |
from pprint import pprint | |
with open('mensajes/trigger.txt') as f: | |
trigger_words = set(f.readlines()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class Arreglos { | |
public static void main(String[] args) { | |
int[] enteros = new int[100]; // un arreglo de 100 enteros | |
String[] strings = new String[5]; // un arreglo de 5 strings | |
int N = 5; // esto se puede leer de la entrada estandar | |
double[] datos = new double[N]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.StringTokenizer; | |
class IO_2 { | |
static public void main(String[] args) throws IOException { | |
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
class IO_1 { | |
static public void main(String[] args) throws IOException { | |
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); | |
String line; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> javac IO_O.java | |
> java IO_0 | |
esto estoy escribiendo | |
esto estoy escribiendo | |
esto estoy leyendo | |
esto estoy leyendo | |
^D | |
> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
class IO_0 { | |
static public void main(String[] args) throws IOException { | |
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); | |
String line; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.* | |
class Plantilla { | |
static public void main(String[] args) throws IOException { | |
/* aca va el codigo principal */ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// se puede importar toda la libreria | |
import java.io.*; | |
// o solo algo especifico | |
import java.io.IOException; | |
// la clase debe tener el mismo nombre del archivo | |
class MiPrograma { | |
// los comentarios se escriben con // o entre | |
NewerOlder