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
%PDF-1.7 | |
%¿÷¢þ | |
%QDF-1.0 | |
1 0 obj | |
<< | |
/Lang (en-US) | |
/OpenAction [ | |
3 0 R | |
/XYZ |
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
# build runnable JAR | |
# kotlinc hello.kt -include-runtime -d hello.jar | |
kotlinc main.kt -include-runtime -d main.jar | |
# Compile a library | |
kotlinc hello.kt -d hello.jar | |
# Run a script | |
kotlinc -script list_folders.kts -- -d <path_to_folder_to_inspect> |
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
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<script src="wasm_exec.js"></script> | |
<script> | |
const go = new Go(); | |
WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => { | |
go.run(result.instance); | |
}); | |
</script> |
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
<!doctype html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Canvas tutorial</title> | |
<style> | |
canvas { | |
border: 1px solid black; | |
} | |
</style> |
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
%PDF-2.0 | |
1 0 obj | |
<< | |
/Pages 2 0 R | |
/Type /Catalog | |
>> | |
endobj | |
2 0 obj | |
<< | |
/Count 1 |
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
use axum::{Router, routing::get, Json}; | |
use serde::Serialize; | |
use std::{sync::Arc, time::SystemTime}; | |
#[derive(Serialize)] | |
struct Health { | |
status: &'static str, | |
uptime_seconds: u64, | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Hello World - Rust</title> | |
<script type="module" src="./index.js"></script> | |
</head> | |
<body> | |
<script> |
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
<properties> | |
<jmh.version>1.21</jmh.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.openjdk.jmh</groupId> | |
<artifactId>jmh-core</artifactId> | |
<version>${jmh.version}</version> | |
</dependency> | |
<dependency> |
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"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>graal-maven-1</artifactId> | |
<version>0.0.2</version> |
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
tasks.jar { | |
manifest { | |
attributes["Main-Class"] = "com.andmal.Main" | |
} | |
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | |
from(sourceSets.main.get().output) | |
dependsOn(configurations.runtimeClasspath) | |
from({ | |
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) } |
NewerOlder