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
# importamos las librerias necesarias | |
from discord_webhook import DiscordWebhook, DiscordEmbed | |
import json | |
import requests | |
# Creamos el webhook y el embed, sustituyendo el enlace al webhook por el que hayamos creado en Discord | |
webhook = DiscordWebhook(url="enlace al webhook") | |
# Creamos el embed | |
embed = DiscordEmbed( |
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
using UnityEngine; | |
using Firebase; | |
using Firebase.Database; | |
using Firebase.Extensions; | |
using Unity.VisualScripting; | |
public class Realtime : MonoBehaviour | |
{ | |
// conexion con Firebase |
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
using UnityEngine; | |
using System.Collections; | |
public class TransformFunctions : MonoBehaviour | |
{ | |
public float moveSpeed = 10f; | |
public float turnSpeed = 50f; | |
void Update () |
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
FROM ubuntu:22.04 | |
ENV TERM linux | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update | |
RUN apt-get install -y emacs | |
CMD ["/bin/bash"] |
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
/** | |
* variable global | |
*/ | |
// para crear los objetos de las frases | |
data class Frase(var texto: String, var verdadero: Boolean) | |
// lista para almacenar las frase | |
var frases: MutableList<Frase> = mutableListOf() | |
// la frase actual | |
var fraseActual: MutableState<Frase> = mutableStateOf(Frase("-",true)) |
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
@Composable | |
fun Login() { | |
// Dos maneras diferentes de definir un estado | |
// con el = necesitamos utilizar value | |
var counter by remember { mutableStateOf(0) } | |
var name = remember { mutableStateOf("") } | |
Column { | |
// mostrar el contador de clics |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Declaracion de RSS --> | |
<rss version="2.0"> | |
<!-- Declaracion del canal --> | |
<channel> | |
<!-- Titulo del Canal --> | |
<title>rss-example</title> | |
<!-- Descripcion del Canal --> | |
<description>Ejemplo de un RSS hecho a mano</description> | |
<!-- Enlace al sitio del Feed RSS --> |
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
/** | |
* Clase para acceder a la base de datos y al DAO | |
**/ | |
class MyViewModel(application: Application) : AndroidViewModel(application) { | |
// definimos el context para crear el room | |
private val context = getApplication<Application>().applicationContext | |
// Objeto para el acceso a la BD utilizando Room |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<bookstore> | |
<book> | |
<title lang="eng">Harry Potter</title> | |
<price>29.99</price> | |
</book> | |
<book> | |
<title lang="eng">Learning XML</title> | |
<price>39.95</price> | |
</book> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="0.91"> | |
<channel> | |
<title>Canal RSS</title> | |
<link>http://miservidor.com</link> | |
<description>Guía para escribir documentos RSS</description> | |
<language>es-ES</language> | |
<image> | |
<title>Canal RSS</title> | |
<url>http://miservidor.com/milogo.gif</url> |
NewerOlder