Skip to content

Instantly share code, notes, and snippets.

@flowmar
Created February 20, 2024 02:49
Show Gist options
  • Save flowmar/810b1bfa865e3d5140b5537bc27a3f28 to your computer and use it in GitHub Desktop.
Save flowmar/810b1bfa865e3d5140b5537bc27a3f28 to your computer and use it in GitHub Desktop.
This is a demonstration of the ability of the Cacher Run Server (https://github.com/CacherApp/cacher-run-server) to execute different languages through your machine's shell. Save this snippet to your library, then click the "Run" tab next to each sni
// C++
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
}
// Go: Install via https://golang.org/dl
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
// Node: Install via https://nodejs.org
console.log('Hello World');
// PHP: Install via http://php.net/manual/en/install.php
<?php
echo "Hello, world!";
?>
# Powershell: Install via https://github.com/PowerShell/PowerShell
Write-Host "Hello World!"
# Python: Install via https://www.python.org/downloads
print("Hello World")
# Ruby: Install via https://www.ruby-lang.org/en/downloads
puts "Hello World"
# Bash
echo "Hello World"
// Swift
print("Hello World")
// Java: Install via https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment