Skip to content

Instantly share code, notes, and snippets.

View Swatinem's full-sized avatar

Arpad Borsos Swatinem

View GitHub Profile
@avafloww
avafloww / PhpJava.java
Last active April 1, 2025 18:01
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@DD5HT
DD5HT / .travis.yml
Last active July 13, 2018 20:01
Using Travis CI to create publish multi target code.
os:
- linux
language: rust
rust:
- nightly
cache:
- apt
matrix:
include:
- env: