Aprendiendo Odin. Un lenguaje de programación orientado a datos.
holamundo.odin
package holamundo
gcc main.c -o imc_calc.exe |
package com.inforhomex.generador; | |
/** | |
* Generador de Excel | |
* | |
*/ | |
public class App | |
{ | |
public static void main( String[] args ) | |
{ |
import ballerina/io; | |
const MAX = 200; | |
type Bailarin record{ | |
string id?; | |
int numero; | |
boolean registrado; | |
string nombre?; | |
}; |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE DeriveAnyClass #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
module MiPrimerToken where | |
import PlutusTx | |
import PlutusTx.Prelude |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
// Contrato ERC-20 básico | |
contract MiPrimerToken { | |
// Variables de estado | |
string public nombre = "MiPrimerToken"; | |
string public simbolo = "MPT"; | |
uint256 public totalSupply; |
use std::env; | |
use std::io; | |
use std::fs::File; | |
mod modulo; | |
// Estructura tradicional | |
struct Color { | |
red: u8, | |
blue: u8, | |
green: u8, |
package ejemplos | |
//Compilar: | |
// kotlinc Main.kt -include-runtime -d main.jar | |
//Ejecutar: | |
// java -jar main.jar | |
import javax.swing.ImageIcon | |
import javax.swing.JOptionPane | |
import java.lang.System |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
// Clases Tornillo y Tuerca | |
class Tornillo { | |
private String numSerie; | |
public String getNumSerie() { |